@ScannerSide @Immutable public class FileMetadata extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
FileMetadata.LineHashConsumer |
Constructor and Description |
---|
FileMetadata() |
Modifier and Type | Method and Description |
---|---|
static void |
computeLineHashesForIssueTracking(InputFile f,
FileMetadata.LineHashConsumer consumer)
Compute a MD5 hash of each line of the file after removing of all blank chars
|
static void |
readFile(java.io.InputStream stream,
java.nio.charset.Charset encoding,
java.lang.String filePath,
CharHandler[] handlers) |
Metadata |
readMetadata(java.io.InputStream stream,
java.nio.charset.Charset encoding,
java.lang.String filePath) |
Metadata |
readMetadata(java.io.InputStream stream,
java.nio.charset.Charset encoding,
java.lang.String filePath,
CharHandler otherHandler)
Compute hash of a file ignoring line ends differences.
|
Metadata |
readMetadata(java.io.Reader reader)
For testing purpose
|
public Metadata readMetadata(java.io.InputStream stream, java.nio.charset.Charset encoding, java.lang.String filePath, @Nullable CharHandler otherHandler)
public Metadata readMetadata(java.io.InputStream stream, java.nio.charset.Charset encoding, java.lang.String filePath)
public Metadata readMetadata(java.io.Reader reader)
public static void readFile(java.io.InputStream stream, java.nio.charset.Charset encoding, java.lang.String filePath, CharHandler[] handlers)
public static void computeLineHashesForIssueTracking(InputFile f, FileMetadata.LineHashConsumer consumer)