org.apache.axis.attachments
Class MultiPartDimeInputStream
java.io.FilterInputStream
public class MultiPartDimeInputStream
This simulates the multipart stream.
READ_ALL
protected static final String[] READ_ALL
boundary
protected byte[] boundary
cachedSOAPEnvelope
protected java.io.ByteArrayInputStream cachedSOAPEnvelope
closed
protected boolean closed
contentId
protected String contentId
log
protected static Log log
orderedParts
protected java.util.LinkedList orderedParts
parts
protected java.util.HashMap parts
rootPartLength
protected int rootPartLength
soapStream
protected java.io.InputStream soapStream
MultiPartDimeInputStream
public MultiPartDimeInputStream(java.io.InputStream is)
throws java.io.IOException
Create a new Multipart stream from an input stream.
is
- the true input stream that is read from
addPart
protected void addPart(String contentId,
String locationId,
AttachmentPart ap)
close
public void close()
throws java.io.IOException
getContentId
public String getContentId()
Return the content id of the stream.
- getContentId in interface MultiPartInputStream
- the Content-Location of the stream.
Null if no content-location specified.
getContentLocation
public String getContentLocation()
Return the content location.
- getContentLocation in interface MultiPartInputStream
- the Content-Location of the stream.
Null if no content-location specified.
read
public int read()
throws java.io.IOException
read
public int read(byte[] b)
throws java.io.IOException
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
readAll
protected void readAll()
throws AxisFault
readTillFound
protected Part readTillFound(String[] id)
throws java.io.IOException
This will read streams in till the one that is needed is found.
id
- is the stream being sought
Copyright © 2005 Apache Web Services Project. All Rights Reserved.