RawText#getBufferSize() bytes
is performed and in case of binary files, canonicalization is turned off (for
the complete file).
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private int | |
| private boolean | |
| private final InputStream | |
| private boolean | |
| private byte | |
| private int | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| public | AutoCRLFInputStream(InputStream
raw input stream in, boolean whether binaries should be detected detectBinary)Creates a new InputStream, wrapping the specified stream |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. Closes this input stream and releases any system resources associated with the stream. |
| private boolean | |
| public int | read()
Implements abstract java. Reads the next byte of data from the input stream. |
| public int | read(byte[]
the buffer into which the data is read. bs, int the start offset in array off, int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. Reads up to |
| buf | back to summary |
|---|---|
| private final byte[] buf | |
| cnt | back to summary |
|---|---|
| private int cnt | |
| detectBinary | back to summary |
|---|---|
| private boolean detectBinary | |
| in | back to summary |
|---|---|
| private final InputStream in | |
| isBinary | back to summary |
|---|---|
| private boolean isBinary | |
| last | back to summary |
|---|---|
| private byte last | |
| ptr | back to summary |
|---|---|
| private int ptr | |
| single | back to summary |
|---|---|
| private final byte[] single | |
| AutoCRLFInputStream | back to summary |
|---|---|
| public AutoCRLFInputStream(InputStream in, boolean detectBinary) Creates a new InputStream, wrapping the specified stream
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| fillBuffer | back to summary |
|---|---|
| private boolean fillBuffer() throws IOException | |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public int read(byte[] bs, int off, int len) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |