org.apache.axis.attachments
public class MultiPartRelatedInputStream extends MultiPartInputStream
Field Summary | |
---|---|
protected byte[] | boundary Field boundary |
protected BoundaryDelimitedStream | boundaryDelimitedStream Field boundaryDelimitedStream |
protected ByteArrayInputStream | cachedSOAPEnvelope Field cachedSOAPEnvelope |
protected boolean | closed Field closed |
protected String | contentId Field contentId |
protected String | contentLocation Field contentLocation |
protected boolean | eos Field eos |
protected static Log | log Field log |
static String | MIME_MULTIPART_RELATED Field MIME_MULTIPART_RELATED |
protected LinkedList | orderedParts Field orderedParts |
protected HashMap | parts Field parts |
protected int | rootPartLength Field rootPartLength |
protected static String[] | READ_ALL Field READ_ALL |
protected InputStream | soapStream Field soapStream |
protected InputStream | soapStreamBDS Field soapStreamBDS |
Constructor Summary | |
---|---|
MultiPartRelatedInputStream(String contentType, InputStream stream)
Create a new Multipart stream. |
Method Summary | |
---|---|
protected void | addPart(String contentId, String locationId, AttachmentPart ap)
Add an AttachmentPart together with its content and location
IDs.
|
int | available() |
void | close() |
Part | getAttachmentByReference(String[] id) |
Collection | getAttachments() |
String | getContentId() |
String | getContentLocation() |
int | read(byte[] b, int off, int len) |
int | read(byte[] b) |
int | read() |
protected void | readAll()
Read all data.
|
protected Part | readTillFound(String[] id)
This will read streams in till the one that is needed is found.
|
Parameters: contentType the string that holds the contentType stream the true input stream from where the source
Throws: org.apache.axis.AxisFault if the stream could not be created
AttachmentPart
together with its content and location
IDs.
Parameters: contentId the content ID locationId the location ID ap the AttachmentPart
Throws: org.apache.axis.AxisFault if there was a problem reading all the data
Parameters: id id is the stream being sought.
Returns: the part for the id
Throws: org.apache.axis.AxisFault