Package com.ultikits.ultitools.config
Class OperatorFiles.Snapshot
java.lang.Object
com.ultikits.ultitools.config.OperatorFiles.Snapshot
- Enclosing class:
OperatorFiles
A file's text exactly as
OperatorFiles.read(File) found it, and the fingerprint of its bytes. Only read creates one.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFile()The file that was read, as an absolute path;OperatorFiles.write(Snapshot, Map)writes only this file.The SHA-256 of the file's bytes, as 64 lower-case hexadecimal digits.getText()The file's text, decoded as strict UTF-8.
-
Field Details
-
file
-
text
-
fingerprint
-
-
Constructor Details
-
Snapshot
-
-
Method Details
-
getFile
The file that was read, as an absolute path;OperatorFiles.write(Snapshot, Map)writes only this file.- Returns:
- the file
-
getText
The file's text, decoded as strict UTF-8.- Returns:
- the text
-
getFingerprint
The SHA-256 of the file's bytes, as 64 lower-case hexadecimal digits.- Returns:
- the fingerprint
-