org.apache.axis.attachments
Class MultiPartDimeInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byorg.apache.axis.attachments.MultiPartInputStream
              extended byorg.apache.axis.attachments.MultiPartDimeInputStream

public class MultiPartDimeInputStream
extends MultiPartInputStream

This simulates the multipart stream.


Constructor Summary
MultiPartDimeInputStream(java.io.InputStream is)
          Create a new Multipart stream from an input stream.
 
Method Summary
 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)
           
 
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiPartDimeInputStream

public MultiPartDimeInputStream(java.io.InputStream is)
                         throws java.io.IOException
Create a new Multipart stream from an input stream.

Parameters:
is - the true input stream that is read from
Throws:
java.io.IOException - if it was not possible to build the Multipart
Method Detail

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()
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()
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


Copyright © 2003 Apache Web Services Project. A ll Rights Reserved.