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 InputStream
IOException
public int read(byte[] bs, int off, int len) throws IOException
read
in class InputStream
IOException
public boolean isBinary()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
Copyright © 2015 Eclipse JGit Project. All rights reserved.