org.apache.axis.attachments
Class MultiPartRelatedInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.axis.attachments.MultiPartInputStream
org.apache.axis.attachments.MultiPartRelatedInputStream
- public class MultiPartRelatedInputStream
- extends MultiPartInputStream
This simulates the multipart stream.
Constructor Summary |
MultiPartRelatedInputStream(java.lang.String contentType,
java.io.InputStream stream)
Create a new Multipart stream. |
Methods inherited from class java.io.FilterInputStream |
mark, markSupported, reset, skip |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MIME_MULTIPART_RELATED
public static final java.lang.String MIME_MULTIPART_RELATED
- Field MIME_MULTIPART_RELATED
- See Also:
- Constant Field Values
MultiPartRelatedInputStream
public MultiPartRelatedInputStream(java.lang.String contentType,
java.io.InputStream stream)
throws AxisFault
- Create a new Multipart stream.
- Parameters:
contentType
- the string that holds the contentTypestream
- the true input stream from where the source
- Throws:
AxisFault
- if the stream could not be created
getAttachmentByReference
public Part getAttachmentByReference(java.lang.String[] id)
throws AxisFault
- Specified by:
getAttachmentByReference
in class MultiPartInputStream
- Throws:
AxisFault
getAttachments
public java.util.Collection getAttachments()
throws AxisFault
- Specified by:
getAttachments
in class MultiPartInputStream
- Throws:
AxisFault
getContentLocation
public java.lang.String getContentLocation()
- Description copied from class:
MultiPartInputStream
- Return the content location.
- Specified by:
getContentLocation
in class MultiPartInputStream
- Returns:
- the Content-Location of the stream.
Null if no content-location specified.
getContentId
public java.lang.String getContentId()
- Description copied from class:
MultiPartInputStream
- Return the content id of the stream.
- Specified by:
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
- Throws:
java.io.IOException
read
public int read(byte[] b)
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read()
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
available
public int available()
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2003 Apache Web Services Project. A ll Rights Reserved.