org.apache.axis.attachments
Class MultiPartDimeInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--java.io.FilterInputStream
|
+--org.apache.axis.attachments.MultiPartInputStream
|
+--org.apache.axis.attachments.MultiPartDimeInputStream
- public class MultiPartDimeInputStream
- extends MultiPartInputStream
This simulates the multipart stream
Fields inherited from class java.io.FilterInputStream |
in |
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 |
log
protected static org.apache.commons.logging.Log log
parts
protected java.util.HashMap parts
orderedParts
protected java.util.LinkedList orderedParts
rootPartLength
protected int rootPartLength
closed
protected boolean closed
eos
protected boolean eos
dimeDelimitedStream
protected DimeDelimitedInputStream dimeDelimitedStream
soapStream
protected java.io.InputStream soapStream
boundary
protected byte[] boundary
cachedSOAPEnvelope
protected java.io.ByteArrayInputStream cachedSOAPEnvelope
contentId
protected java.lang.String contentId
READ_ALL
protected static final java.lang.String[] READ_ALL
MultiPartDimeInputStream
public MultiPartDimeInputStream(java.io.InputStream is)
throws java.io.IOException
- Multipart stream.
- Parameters:
is
- the true input stream from where the source.
getAttachmentByReference
public Part getAttachmentByReference(java.lang.String[] id)
throws AxisFault
- Overrides:
getAttachmentByReference
in class MultiPartInputStream
addPart
protected void addPart(java.lang.String contentId,
java.lang.String locationId,
AttachmentPart ap)
readAll
protected void readAll()
throws AxisFault
getAttachments
public java.util.Collection getAttachments()
throws AxisFault
- Overrides:
getAttachments
in class MultiPartInputStream
readTillFound
protected Part readTillFound(java.lang.String[] id)
throws java.io.IOException
- This will read streams in till the one that is needed is found.
- Parameters:
id
- is the stream being sought.
getContentLocation
public java.lang.String getContentLocation()
- Return the content location.
- Overrides:
getContentLocation
in class MultiPartInputStream
- Returns:
- the Content-Location of the stream.
Null if no content-location specified.
getContentId
public java.lang.String getContentId()
- Return the content id of the stream
- Overrides:
getContentId
in class MultiPartInputStream
- Returns:
- the Content-Location of the stream.
Null if no content-location specified.
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Read the root stream.
- Overrides:
read
in class java.io.FilterInputStream
read
public int read(byte[] b)
throws java.io.IOException
- Overrides:
read
in class java.io.FilterInputStream
read
public int read()
throws java.io.IOException
- Overrides:
read
in class java.io.FilterInputStream
close
public void close()
throws java.io.IOException
- Overrides:
close
in class java.io.FilterInputStream
Copyright © 2003 Apache Web Services Project. All Rights Reserved.