public class EolCanonicalizingInputStream extends InputStream
| Modifier and Type | Class and 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 and 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
|
public 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 Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2014. All rights reserved.