|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
org.apache.axis.attachments.MultiPartInputStream
org.apache.axis.attachments.MultiPartDimeInputStream
This simulates the multipart stream
| Field Summary | |
protected byte[] |
boundary
|
protected ByteArrayInputStream |
cachedSOAPEnvelope
|
protected boolean |
closed
|
protected String |
contentId
|
protected DimeDelimitedInputStream |
dimeDelimitedStream
|
protected boolean |
eos
|
protected LinkedList |
orderedParts
|
protected HashMap |
parts
|
protected static String[] |
READ_ALL
|
protected int |
rootPartLength
|
protected InputStream |
soapStream
|
| Fields inherited from class java.io.FilterInputStream |
in |
| Constructor Summary | |
MultiPartDimeInputStream(InputStream is)
Multipart stream. |
|
| Method Summary | |
protected void |
addPart(String contentId,
String locationId,
AttachmentPartImpl ap)
|
void |
close()
|
Part |
getAttachmentByReference(String[] id)
|
Collection |
getAttachments()
|
String |
getContentId()
Return the content id of the stream |
String |
getContentLocation()
Return the content location. |
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
Read the root stream. |
protected void |
readAll()
|
protected Part |
readTillFound(String[] id)
This will read streams in till the one that is needed is found. |
| Methods inherited from class java.io.FilterInputStream |
available, mark, markSupported, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected HashMap parts
protected LinkedList orderedParts
protected int rootPartLength
protected boolean closed
protected boolean eos
protected DimeDelimitedInputStream dimeDelimitedStream
protected InputStream soapStream
protected byte[] boundary
protected ByteArrayInputStream cachedSOAPEnvelope
protected String contentId
protected static final String[] READ_ALL
| Constructor Detail |
public MultiPartDimeInputStream(InputStream is) throws IOException
is - the true input stream from where the source.| Method Detail |
public Part getAttachmentByReference(String[] id) throws AxisFault
getAttachmentByReference in class MultiPartInputStreamAxisFaultprotected void addPart(String contentId, String locationId, AttachmentPartImpl ap)
protected void readAll()
throws AxisFault
AxisFaultpublic Collection getAttachments() throws AxisFault
getAttachments in class MultiPartInputStreamAxisFaultprotected Part readTillFound(String[] id) throws IOException
id - is the stream being sought.
IOExceptionpublic String getContentLocation()
getContentLocation in class MultiPartInputStreampublic String getContentId()
getContentId in class MultiPartInputStream
public int read(byte[] b,
int off,
int len)
throws IOException
IOException
public int read(byte[] b)
throws IOException
IOException
public int read()
throws IOException
IOException
public void close()
throws IOException
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||