org.apache.axis.attachments
public class MultiPartDimeInputStream extends MultiPartInputStream
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
boundary |
protected java.io.ByteArrayInputStream |
cachedSOAPEnvelope |
protected boolean |
closed |
protected java.lang.String |
contentId |
protected DimeDelimitedInputStream |
dimeDelimitedStream |
protected boolean |
eos |
protected static org.apache.commons.logging.Log |
log |
protected java.util.LinkedList |
orderedParts |
protected java.util.HashMap |
parts |
protected static java.lang.String[] |
READ_ALL |
protected int |
rootPartLength |
protected java.io.InputStream |
soapStream |
| Constructor and Description |
|---|
MultiPartDimeInputStream(java.io.InputStream is)
Create a new Multipart stream from an input stream.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPart(java.lang.String contentId,
java.lang.String locationId,
AttachmentPart ap) |
void |
close() |
Part |
getAttachmentByReference(java.lang.String[] id) |
java.util.Collection |
getAttachments() |
java.lang.String |
getContentId()
Return the content id of the stream.
|
java.lang.String |
getContentLocation()
Return the content location.
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
protected void |
readAll() |
protected Part |
readTillFound(java.lang.String[] id)
This will read streams in till the one that is needed is found.
|
protected static org.apache.commons.logging.Log log
protected java.util.HashMap parts
protected java.util.LinkedList orderedParts
protected int rootPartLength
protected boolean closed
protected boolean eos
protected DimeDelimitedInputStream dimeDelimitedStream
protected java.io.InputStream soapStream
protected byte[] boundary
protected java.io.ByteArrayInputStream cachedSOAPEnvelope
protected java.lang.String contentId
protected static final java.lang.String[] READ_ALL
public MultiPartDimeInputStream(java.io.InputStream is)
throws java.io.IOException
is - the true input stream that is read fromjava.io.IOException - if it was not possible to build the Multipartpublic Part getAttachmentByReference(java.lang.String[] id) throws AxisFault
getAttachmentByReference in class MultiPartInputStreamAxisFaultprotected void addPart(java.lang.String contentId,
java.lang.String locationId,
AttachmentPart ap)
public java.util.Collection getAttachments()
throws AxisFault
getAttachments in class MultiPartInputStreamAxisFaultprotected Part readTillFound(java.lang.String[] id) throws java.io.IOException
id - is the stream being soughtPart matching the idsjava.io.IOExceptionpublic java.lang.String getContentLocation()
getContentLocation in class MultiPartInputStreampublic java.lang.String getContentId()
getContentId in class MultiPartInputStreampublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.FilterInputStreamjava.io.IOExceptionCopyright ? 2005 Apache Web Services Project. All Rights Reserved.