|
||||||||||
| 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.DimeDelimitedInputStream
This class takes the input stream and turns it multiple streams. DIME version 0 format 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ --- | VERSION |B|E|C| TYPE_T| OPT_T | OPTIONS_LENGTH | A +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID_LENGTH | TYPE_LENGTH | Always present 12 bytes +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ even on chunked data. | DATA_LENGTH | V +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ --- | / / OPTIONS + PADDING / / (absent for version 0) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | / / ID + PADDING / / | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | / / TYPE + PADDING / / | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | / / DATA + PADDING / / | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Field Summary | |
protected static org.apache.commons.logging.Log |
log
|
protected static int |
streamCount
|
protected java.io.IOException |
streamInError
|
protected int |
streamNo
|
| Fields inherited from class java.io.FilterInputStream |
in |
| Method Summary | |
protected int |
_read(byte[] b,
int off,
int len)
|
int |
available()
|
void |
close()
Closes the stream. |
java.lang.String |
getContentId()
Get the id for this stream part. |
DimeTypeNameFormat |
getDimeTypeNameFormat()
Read from the boundary delimited stream. |
java.lang.String |
getType()
get type. |
void |
mark(int readlimit)
mark the stream. |
boolean |
markSupported()
markSupported return false; |
protected static int |
newStreamNo()
|
int |
read()
Read from the boundary delimited stream. |
int |
read(byte[] b)
Read from the delimited stream. |
int |
read(byte[] b,
int off,
int len)
Read from the DIME 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 int streamNo
protected java.io.IOException streamInError
protected static int streamCount
| Method Detail |
protected static int newStreamNo()
public java.lang.String getContentId()
public DimeTypeNameFormat getDimeTypeNameFormat()
b - is the array to read into.off - is the offsetpublic java.lang.String getType()
b - is the array to read into.off - is the offset
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 offset
protected int _read(byte[] b,
int off,
int len)
throws 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.
public int read()
throws java.io.IOException
read in class java.io.FilterInputStream
public void close()
throws java.io.IOException
close in class java.io.FilterInputStreampublic void mark(int readlimit)
mark in class java.io.FilterInputStream
public void reset()
throws java.io.IOException
reset in class java.io.FilterInputStreampublic boolean markSupported()
markSupported in class java.io.FilterInputStream
public int available()
throws java.io.IOException
available in class java.io.FilterInputStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||