Closeable, AutoCloseablepublic class EolCanonicalizingInputStream extends InputStream
| Modifier and Type | Class | Description |
|---|---|---|
static class |
EolCanonicalizingInputStream.IsBinaryException |
A special exception thrown when
EolCanonicalizingInputStream is
told to throw an exception when attempting to read a binary file. |
| Constructor | Description |
|---|---|
EolCanonicalizingInputStream(InputStream in,
boolean detectBinary) |
Creates a new InputStream, wrapping the specified stream
|
EolCanonicalizingInputStream(InputStream in,
boolean detectBinary,
boolean abortIfBinary) |
Creates a new InputStream, wrapping the specified stream
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
boolean |
isBinary() |
|
int |
read() |
|
int |
read(byte[] bs,
int off,
int len) |
available, mark, markSupported, read, readAllBytes, readNBytes, reset, skip, transferTopublic EolCanonicalizingInputStream(InputStream in, boolean detectBinary)
in - raw input streamdetectBinary - whether binaries should be detectedpublic EolCanonicalizingInputStream(InputStream in, boolean detectBinary, boolean abortIfBinary)
in - raw input streamdetectBinary - whether binaries should be detectedabortIfBinary - throw an IOException if the file is binarypublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] bs,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic boolean isBinary()
public void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class InputStreamIOExceptionCopyright © 2018. All rights reserved.