Package com.diffplug.spotless
Class PaddedCell.DirtyState
- java.lang.Object
-
- com.diffplug.spotless.PaddedCell.DirtyState
-
- Enclosing class:
- PaddedCell
public static class PaddedCell.DirtyState extends Object
The clean/dirty state of a single file. Intended use: -isClean()
means that the file is clean, and there's nothing else to say -didNotConverge()
means that we were unable to determine a clean state - once you've tested the above conditions and you know that it's a dirty file with a converged state, then you can callwriteCanonicalTo(OutputStream)
to get the canonical form of the given file.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
didNotConverge()
boolean
isClean()
void
writeCanonicalTo(File file)
void
writeCanonicalTo(OutputStream out)
-
-
-
Method Detail
-
isClean
public boolean isClean()
-
didNotConverge
public boolean didNotConverge()
-
writeCanonicalTo
public void writeCanonicalTo(File file) throws IOException
- Throws:
IOException
-
writeCanonicalTo
public void writeCanonicalTo(OutputStream out) throws IOException
- Throws:
IOException
-
-