|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.io.InputStream
|
+--java.io.FilterInputStream
|
+--org.apache.axis.attachments.BoundaryDelimitedStream
This class takes the input stream and turns it multiple streams.
| Field Summary | |
protected byte[] |
boundary
Field boundary |
protected static int |
BOUNDARY_NOT_FOUND
Field BOUNDARY_NOT_FOUND |
protected static org.apache.commons.logging.Log |
log
Field log |
protected int |
streamNo
Field streamNo |
| Fields inherited from class java.io.FilterInputStream |
in |
| Constructor Summary | |
protected |
BoundaryDelimitedStream(BoundaryDelimitedStream prev,
int readbufsz)
Constructor to create the next stream from the previous one. |
| Method Summary | |
int |
available()
Method available |
protected int |
boundaryPosition(byte[] searchbuf,
int start,
int end)
Read from the boundary delimited stream. |
void |
close()
Closes the stream. |
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()
Method newStreamNo |
static void |
printarry(byte[] b,
int start,
int end)
Method printarry |
int |
read()
Read from the boundary delimited stream. |
int |
read(byte[] b)
Read from the boundary delimited stream. |
int |
read(byte[] b,
int off,
int len)
Read from the boundary delimited stream. |
void |
reset()
reset the stream. |
| Methods inherited from class java.io.FilterInputStream |
skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static org.apache.commons.logging.Log log
protected byte[] boundary
protected static final int BOUNDARY_NOT_FOUND
protected int streamNo
| Constructor Detail |
protected BoundaryDelimitedStream(BoundaryDelimitedStream prev,
int readbufsz)
prev - readbufsz - | Method Detail |
protected static int newStreamNo()
public BoundaryDelimitedStream getNextStream()
protected BoundaryDelimitedStream getNextStream(int readbufsz)
readbufsz -
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamb - is the array to read into.off - is the offsetlen - java.io.IOException -
public int read(byte[] b)
throws java.io.IOException
read in class java.io.FilterInputStreamb - is the array to read into. Read as much as possible
into the size of this array.java.io.IOException -
public int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOException -
public void close()
throws java.io.IOException
close in class java.io.FilterInputStreamjava.io.IOException - public void mark(int readlimit)
mark in class java.io.FilterInputStreamreadlimit -
public void reset()
throws java.io.IOException
reset in class java.io.FilterInputStreamjava.io.IOException - public boolean markSupported()
markSupported in class java.io.FilterInputStream
public int available()
throws java.io.IOException
available in class java.io.FilterInputStreamjava.io.IOException -
protected int boundaryPosition(byte[] searchbuf,
int start,
int end)
searchbuf - start - end -
public static void printarry(byte[] b,
int start,
int end)
b - start - end -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||