public class BoundaryPushbackInputStream extends InputStream
Modifier and Type | Field and Description |
---|---|
protected static int |
BOUNDARY_NT_FOUND |
Constructor and Description |
---|
BoundaryPushbackInputStream(PushbackInputStream inStream,
byte[] boundary,
int pushBackSize) |
Modifier and Type | Method and Description |
---|---|
protected int |
boundaryPosition(byte[] searchbuf,
int start,
int end)
Read from the boundary delimited stream.
|
boolean |
getBoundaryStatus() |
int |
read()
Read from the boundary delimited stream.
|
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len)
Read from the boundary delimited stream.
|
String |
toString()
toString
dumps state information.
|
available, close, mark, markSupported, reset, skip
protected static final int BOUNDARY_NT_FOUND
public BoundaryPushbackInputStream(PushbackInputStream inStream, byte[] boundary, int pushBackSize)
inStream
- boundary
- pushBackSize
- public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
b
- is the array to read into.off
- is the offsetlen
- IOException
protected int boundaryPosition(byte[] searchbuf, int start, int end) throws IOException
searchbuf
- start
- end
- IOException
public boolean getBoundaryStatus()
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.