|
||||||||||
| 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.jboss.axis.attachments.MultiPartInputStream
org.jboss.axis.attachments.MultiPartRelatedInputStream
public class MultiPartRelatedInputStream
This simulates the multipart stream
| 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 |
static String |
MIME_MULTIPART_RELATED
Field MIME_MULTIPART_RELATED |
protected LinkedList |
orderedParts
Field orderedParts |
protected HashMap |
parts
Field parts |
protected static String[] |
READ_ALL
Field READ_ALL |
protected int |
rootPartLength
Field rootPartLength |
protected InputStream |
soapStream
Field soapStream |
protected InputStream |
soapStreamBDS
Field soapStreamBDS |
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
MultiPartRelatedInputStream(String contentType,
InputStream stream)
Multipart stream. |
|
| Method Summary | |
|---|---|
protected void |
addPart(String contentId,
String locationId,
AttachmentPartImpl ap)
Method addPart |
void |
close()
Method close |
Part |
getAttachmentByReference(String[] id)
Method getAttachmentByReference |
Collection |
getAttachments()
Method getAttachments |
String |
getContentId()
Return the content id of the stream |
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(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 |
|---|
public static final String MIME_MULTIPART_RELATED
protected HashMap parts
protected LinkedList orderedParts
protected int rootPartLength
protected boolean closed
protected boolean eos
protected BoundaryDelimitedStream boundaryDelimitedStream
protected InputStream soapStream
protected InputStream soapStreamBDS
protected byte[] boundary
protected ByteArrayInputStream cachedSOAPEnvelope
protected String contentLocation
protected String contentId
protected static final String[] READ_ALL
| Constructor Detail |
|---|
public MultiPartRelatedInputStream(String contentType,
InputStream stream)
throws AxisFault
contentType - the string that holds the contentTypestream - is the true input stream from where the source.
AxisFault| Method Detail |
|---|
public Part getAttachmentByReference(String[] id)
throws AxisFault
getAttachmentByReference in class MultiPartInputStreamid -
AxisFault
protected void addPart(String contentId,
String locationId,
AttachmentPartImpl ap)
contentId - locationId - ap -
protected void readAll()
throws AxisFault
AxisFault
public Collection getAttachments()
throws AxisFault
getAttachments in class MultiPartInputStreamAxisFault
protected Part readTillFound(String[] id)
throws AxisFault
id - id is the stream being sought.
AxisFaultpublic String getContentLocation()
getContentLocation in class MultiPartInputStreampublic String getContentId()
getContentId in class MultiPartInputStream
public int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamb - off - len -
IOException
public int read(byte[] b)
throws IOException
read in class FilterInputStreamb -
IOException
public int read()
throws IOException
read in class FilterInputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in class FilterInputStreamIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||