| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
org.apache.axis.attachments.MultiPartInputStream
org.apache.axis.attachments.MultiPartRelatedInputStream
This simulates the multipart stream.
| Field Summary | |
| protected  byte[] | boundaryField boundary | 
| protected  BoundaryDelimitedStream | boundaryDelimitedStreamField boundaryDelimitedStream | 
| protected  java.io.ByteArrayInputStream | cachedSOAPEnvelopeField cachedSOAPEnvelope | 
| protected  boolean | closedField closed | 
| protected  java.lang.String | contentIdField contentId | 
| protected  java.lang.String | contentLocationField contentLocation | 
| protected  boolean | eosField eos | 
| protected static org.apache.commons.logging.Log | logField log | 
| static java.lang.String | MIME_MULTIPART_RELATEDField MIME_MULTIPART_RELATED | 
| protected  java.util.LinkedList | orderedPartsField orderedParts | 
| protected  java.util.HashMap | partsField parts | 
| protected static java.lang.String[] | READ_ALLField READ_ALL | 
| protected  int | rootPartLengthField rootPartLength | 
| protected  java.io.InputStream | soapStreamField soapStream | 
| protected  java.io.InputStream | soapStreamBDSField soapStreamBDS | 
| Fields inherited from class java.io.FilterInputStream | 
| in | 
| Constructor Summary | |
| MultiPartRelatedInputStream(java.lang.String contentType,
                            java.io.InputStream stream)Create a new Multipart stream. | |
| Method Summary | |
| protected  void | addPart(java.lang.String contentId,
        java.lang.String locationId,
        AttachmentPart ap)Add an AttachmentParttogether with its content and location
 IDs. | 
|  int | available() | 
|  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()Read all data. | 
| 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 | 
| 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 - the string that holds the contentTypestream - the true input stream from where the source
AxisFault - if the stream could not be created| Method Detail | 
public Part getAttachmentByReference(java.lang.String[] id)
                              throws AxisFault
getAttachmentByReference in class MultiPartInputStreamAxisFault
protected void addPart(java.lang.String contentId,
                       java.lang.String locationId,
                       AttachmentPart ap)
AttachmentPart together with its content and location
 IDs.
contentId - the content IDlocationId - the location IDap - the AttachmentPart
protected void readAll()
                throws AxisFault
AxisFault - if there was a problem reading all the
              data
public java.util.Collection getAttachments()
                                    throws AxisFault
getAttachments in class MultiPartInputStreamAxisFault
protected Part readTillFound(java.lang.String[] id)
                      throws AxisFault
id - id is the stream being sought.
AxisFaultpublic java.lang.String getContentLocation()
MultiPartInputStream
getContentLocation in class MultiPartInputStreampublic java.lang.String getContentId()
MultiPartInputStream
getContentId in class MultiPartInputStream
public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
java.io.IOException
public int read(byte[] b)
         throws java.io.IOException
java.io.IOException
public int read()
         throws java.io.IOException
java.io.IOException
public void close()
           throws java.io.IOException
java.io.IOException
public int available()
              throws java.io.IOException
java.io.IOException| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||