final class BinaryInput
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private static interface |
BinaryInput.LineConsumer |
| Modifier and Type | Field and Description |
|---|---|
private boolean |
acceptBom |
private boolean |
acceptCr |
private static java.lang.String |
ARG_ACCEPT_BOM |
private static java.lang.String |
ARG_ACCEPT_CR |
private static java.lang.String |
ARG_IGNORE_EMPTY |
private boolean |
ignoreEmpty |
| Constructor and Description |
|---|
BinaryInput() |
BinaryInput(boolean acceptBom,
boolean acceptCr,
boolean ignoreEmpty) |
| Modifier and Type | Method and Description |
|---|---|
private static int |
forAllLines(java.io.InputStream is,
byte separator,
BinaryInput.LineConsumer lineConsumer)
Read all byte-separated sequences.
|
private static boolean |
hasCr(byte[] seq,
int length) |
(package private) java.util.List<byte[]> |
readBinarySequences(java.nio.file.Path input,
byte separator) |
private static final java.lang.String ARG_ACCEPT_BOM
private static final java.lang.String ARG_ACCEPT_CR
private static final java.lang.String ARG_IGNORE_EMPTY
private boolean acceptBom
private boolean acceptCr
private boolean ignoreEmpty
BinaryInput()
public BinaryInput(boolean acceptBom,
boolean acceptCr,
boolean ignoreEmpty)
java.util.List<byte[]> readBinarySequences(java.nio.file.Path input,
byte separator)
throws java.io.IOException
java.io.IOExceptionprivate static boolean hasCr(byte[] seq,
int length)
private static int forAllLines(java.io.InputStream is,
byte separator,
BinaryInput.LineConsumer lineConsumer)
throws java.io.IOException
java.io.IOException