org.apache.axis.attachments
public class BoundaryDelimitedStream extends FilterInputStream
Field Summary | |
---|---|
protected byte[] | boundary |
protected static int | BOUNDARY_NOT_FOUND Field BOUNDARY_NOT_FOUND. |
protected static Log | log The Log that this class should log all events to. |
protected int | streamNo Field streamNo. |
Constructor Summary | |
---|---|
protected | BoundaryDelimitedStream(BoundaryDelimitedStream prev, int readbufsz)
Constructor to create the next stream from the previous one.
|
Method Summary | |
---|---|
int | available() |
protected int | boundaryPosition(byte[] searchbuf, int start, int end)
Read from the boundary delimited stream.
|
void | close()
Closes the stream.
|
protected void | finalClose()
Close the underlying stream and remove all references to it.
|
BoundaryDelimitedStream | getNextStream()
Gets the next stream. |
protected BoundaryDelimitedStream | getNextStream(int readbufsz)
Gets the next stream. |
void | mark(int readlimit)
mark the stream.
|
boolean | markSupported()
markSupported
return false;
|
protected static int | newStreamNo()
Signal that a new stream has been created.
|
static void | printarry(byte[] b, int start, int end)
Method printarry
|
int | read(byte[] b, int off, int len)
Read from the boundary delimited stream. |
int | read(byte[] b)
Read from the boundary delimited stream. |
int | read()
Read from the boundary delimited stream. |
void | reset()
reset the stream.
|
Log
that this class should log all events to.Parameters: prev the previous stream readbufsz how many bytes to make the read buffer
Throws: java.io.IOException if there was a problem reading data from
prev
Parameters: searchbuf buffer to read from start starting index end ending index
Returns: The position of the boundary. Detects the end of the source stream.
Throws: java.io.IOException if there was an error manipulating the underlying stream
Throws: java.io.IOException
Throws: java.io.IOException if the stream could not be closed
Returns: the boundary delmited stream, null if there are no more streams.
Throws: java.io.IOException if there was an error loading the data for the next stream
Parameters: readbufsz
Returns: the boundary delmited stream, null if there are no more streams.
Throws: java.io.IOException if there was an error loading the data for the next stream
Parameters: readlimit
Returns:
Returns:
Parameters: b start end
Parameters: b is the array to read into. off is the offset len
Returns: the number of bytes read. -1 if endof stream.
Throws: java.io.IOException
Parameters: b is the array to read into. Read as much as possible into the size of this array.
Returns: the number of bytes read. -1 if endof stream.
Throws: java.io.IOException
Returns: The byte read, or -1 if endof stream.
Throws: java.io.IOException
Throws: java.io.IOException