Package com.diffplug.spotless
Class DirtyState
java.lang.Object
com.diffplug.spotless.DirtyState
The clean/dirty state of a single file. Intended use:
-
isClean()
means that the file is 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 call writeCanonicalTo(OutputStream)
to get the canonical form of the given file.-
Method Summary
Modifier and TypeMethodDescriptionstatic DirtyState
clean()
Returns the DirtyState which corresponds toisClean()
.boolean
boolean
isClean()
static DirtyState
static DirtyState
static DirtyState
void
writeCanonicalTo
(File file) void
-
Method Details
-
isClean
public boolean isClean() -
didNotConverge
public boolean didNotConverge() -
writeCanonicalTo
- Throws:
IOException
-
writeCanonicalTo
- Throws:
IOException
-
clean
Returns the DirtyState which corresponds toisClean()
. -
of
- Throws:
IOException
-
of
-
of
-