Package morfologik.tools
Class BinaryInput
java.lang.Object
morfologik.tools.BinaryInput
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
forAllLines
(InputStream is, byte separator, BinaryInput.LineConsumer lineConsumer) Read all byte-separated sequences.private static boolean
hasCr
(byte[] seq, int length) (package private) List<byte[]>
readBinarySequences
(Path input, byte separator)
-
Field Details
-
ARG_ACCEPT_BOM
- See Also:
-
ARG_ACCEPT_CR
- See Also:
-
ARG_IGNORE_EMPTY
- See Also:
-
acceptBom
private boolean acceptBom -
acceptCr
private boolean acceptCr -
ignoreEmpty
private boolean ignoreEmpty
-
-
Constructor Details
-
BinaryInput
BinaryInput() -
BinaryInput
public BinaryInput(boolean acceptBom, boolean acceptCr, boolean ignoreEmpty)
-
-
Method Details
-
readBinarySequences
- Throws:
IOException
-
hasCr
private static boolean hasCr(byte[] seq, int length) -
forAllLines
private static int forAllLines(InputStream is, byte separator, BinaryInput.LineConsumer lineConsumer) throws IOException Read all byte-separated sequences.- Throws:
IOException
-