Class OperatorFileWriter.Snapshot
java.lang.Object
com.ultikits.ultitools.config.document.OperatorFileWriter.Snapshot
- Enclosing class:
OperatorFileWriter
The file as the gate read it at write time, or why the write cannot start.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate ConfigDocumentprivate OperatorFileWriter.Outcomeprivate Stringprivate ConfigDocumentprivate booleanWhether the file was read and parsed (original and candidate are the file's, not empty placeholders).private Stringprivate Stringprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckPreconditions(OwnedPaths owned, String expectedFingerprint) private voidfail(OperatorFileWriter.Outcome outcome, String why) (package private) static OperatorFileWriter.Snapshotread(Path file, OwnedPaths owned, String expectedFingerprint) private voidreadLoaded(Path file, ConfigLoadResult loaded) Reads the bytes the load parsed; a second read that differs means the file moved in between.
-
Field Details
-
UNREADABLE
- See Also:
-
text
-
fingerprint
-
original
-
candidate
-
absent
private boolean absent -
parsed
private boolean parsedWhether the file was read and parsed (original and candidate are the file's, not empty placeholders). -
failure
-
reason
-
-
Constructor Details
-
Snapshot
private Snapshot()
-
-
Method Details
-
read
-
readLoaded
Reads the bytes the load parsed; a second read that differs means the file moved in between. -
checkPreconditions
-
fail
-