|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.InputStream | +--java.io.FilterInputStream | +--org.apache.axis.attachments.MultiPartInputStream | +--org.apache.axis.attachments.MultiPartRelatedInputStream
This simulates the multipart stream
Field Summary | |
protected byte[] |
boundary
Field boundary |
protected BoundaryDelimitedStream |
boundaryDelimitedStream
Field boundaryDelimitedStream |
protected java.io.ByteArrayInputStream |
cachedSOAPEnvelope
Field cachedSOAPEnvelope |
protected boolean |
closed
Field closed |
protected java.lang.String |
contentId
Field contentId |
protected java.lang.String |
contentLocation
Field contentLocation |
protected boolean |
eos
Field eos |
protected static org.apache.commons.logging.Log |
log
Field log |
static java.lang.String |
MIME_MULTIPART_RELATED
Field MIME_MULTIPART_RELATED |
protected java.util.LinkedList |
orderedParts
Field orderedParts |
protected java.util.HashMap |
parts
Field parts |
protected static java.lang.String[] |
READ_ALL
Field READ_ALL |
protected int |
rootPartLength
Field rootPartLength |
protected java.io.InputStream |
soapStream
Field soapStream |
protected java.io.InputStream |
soapStreamBDS
Field soapStreamBDS |
Fields inherited from class java.io.FilterInputStream |
in |
Constructor Summary | |
MultiPartRelatedInputStream(java.lang.String contentType,
java.io.InputStream stream)
Multipart stream. |
Method Summary | |
protected void |
addPart(java.lang.String contentId,
java.lang.String locationId,
AttachmentPart ap)
Method addPart |
void |
close()
Method close |
Part |
getAttachmentByReference(java.lang.String[] id)
Method getAttachmentByReference |
java.util.Collection |
getAttachments()
Method getAttachments |
java.lang.String |
getContentId()
Return the content id of the stream |
java.lang.String |
getContentLocation()
Return the content location. |
int |
read()
Method read |
int |
read(byte[] b)
Method read |
int |
read(byte[] b,
int off,
int len)
Read the root stream. |
protected void |
readAll()
Method readAll |
protected Part |
readTillFound(java.lang.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 static org.apache.commons.logging.Log log
public static final java.lang.String MIME_MULTIPART_RELATED
protected java.util.HashMap parts
protected java.util.LinkedList orderedParts
protected int rootPartLength
protected boolean closed
protected boolean eos
protected BoundaryDelimitedStream boundaryDelimitedStream
protected java.io.InputStream soapStream
protected java.io.InputStream soapStreamBDS
protected byte[] boundary
protected java.io.ByteArrayInputStream cachedSOAPEnvelope
protected java.lang.String contentLocation
protected java.lang.String contentId
protected static final java.lang.String[] READ_ALL
Constructor Detail |
public MultiPartRelatedInputStream(java.lang.String contentType, java.io.InputStream stream) throws AxisFault
contentType
-
AxisFault
Method Detail |
public Part getAttachmentByReference(java.lang.String[] id) throws AxisFault
getAttachmentByReference
in class MultiPartInputStream
id
-
AxisFault
protected void addPart(java.lang.String contentId, java.lang.String locationId, AttachmentPart ap)
contentId
- locationId
- ap
- protected void readAll() throws AxisFault
AxisFault
public java.util.Collection getAttachments() throws AxisFault
getAttachments
in class MultiPartInputStream
AxisFault
protected Part readTillFound(java.lang.String[] id) throws AxisFault
id
- id is the stream being sought.
AxisFault
public java.lang.String getContentLocation()
getContentLocation
in class MultiPartInputStream
public java.lang.String getContentId()
getContentId
in class MultiPartInputStream
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
b
- off
- len
-
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.FilterInputStream
b
-
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public void close() throws java.io.IOException
close
in class java.io.FilterInputStream
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |