org.apache.axis.attachments
public class MultiPartDimeInputStream extends MultiPartInputStream
| Field Summary | |
|---|---|
| protected byte[] | boundary |
| protected ByteArrayInputStream | cachedSOAPEnvelope |
| protected boolean | closed |
| protected String | contentId |
| protected DimeDelimitedInputStream | dimeDelimitedStream |
| protected boolean | eos |
| protected static Log | log |
| protected LinkedList | orderedParts |
| protected HashMap | parts |
| protected int | rootPartLength |
| protected static String[] | READ_ALL |
| protected InputStream | soapStream |
| Constructor Summary | |
|---|---|
| MultiPartDimeInputStream(InputStream is)
Create a new Multipart stream from an input stream.
| |
| Method Summary | |
|---|---|
| protected void | addPart(String contentId, String locationId, AttachmentPart 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(byte[] b, int off, int len) |
| int | read(byte[] b) |
| int | read() |
| protected void | readAll() |
| protected Part | readTillFound(String[] id)
This will read streams in till the one that is needed is found.
|
Parameters: is the true input stream that is read from
Throws: java.io.IOException if it was not possible to build the Multipart
Returns: the Content-Location of the stream. Null if no content-location specified.
Returns: the Content-Location of the stream. Null if no content-location specified.
Parameters: id is the stream being sought
Returns: a Part matching the ids