commentPattern and line endings.
read() method will not return either line endings or commented lines.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final boolean | |
| private int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public | EmptyLineAndCommentSkippingInputStream(InputStream
original input stream in, String comment line pattern (if empty or null, comments will not be enabled) commentLineStartsWith)Creates Input stream that does not read (skips) lines starting with |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized int | read()
Overrides java. See
the general contract of the |
| private int |
| commentLineStartsWith | back to summary |
|---|---|
| private final String commentLineStartsWith | |
| commentSkipEnabled | back to summary |
|---|---|
| private final boolean commentSkipEnabled | |
| lastRead | back to summary |
|---|---|
| private int lastRead | |
| MAX_CHAR_SIZE_IN_BYTES | back to summary |
|---|---|
| public static final int MAX_CHAR_SIZE_IN_BYTES | |
| EmptyLineAndCommentSkippingInputStream | back to summary |
|---|---|
| public EmptyLineAndCommentSkippingInputStream(InputStream in, String commentLineStartsWith) Creates Input stream that does not read (skips) lines starting with
| |
| read | back to summary |
|---|---|
| public synchronized int read() throws IOException Overrides java. Doc from java. See
the general contract of the
| |
| read | back to summary |
|---|---|
| private int read(final int lastRead, final boolean lookAhead) throws IOException | |