public class AutoCRLFInputStream
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
buf |
(package private) static int |
BUFFER_SIZE |
private int |
cnt |
private boolean |
detectBinary |
private java.io.InputStream |
in |
private boolean |
isBinary |
private byte |
last |
private int |
ptr |
private byte[] |
single |
| Constructor and Description |
|---|
AutoCRLFInputStream(java.io.InputStream in,
boolean detectBinary)
Creates a new InputStream, wrapping the specified stream
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
private boolean |
fillBuffer() |
int |
read() |
int |
read(byte[] bs,
int off,
int len) |
static final int BUFFER_SIZE
private final byte[] single
private final byte[] buf
private final java.io.InputStream in
private int cnt
private int ptr
private boolean isBinary
private boolean detectBinary
private byte last
public AutoCRLFInputStream(java.io.InputStream in,
boolean detectBinary)
in - raw input streamdetectBinary - whether binaries should be detectedpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] bs,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionprivate boolean fillBuffer()
throws java.io.IOException
java.io.IOException