Package org.apache.axiom.attachments
Class MIMEBodyPartInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.axiom.attachments.MIMEBodyPartInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class MIMEBodyPartInputStream extends InputStream
MIMEBodyPartInputStream
-
-
Constructor Summary
Constructors Constructor Description MIMEBodyPartInputStream(PushbackInputStream inStream, byte[] boundary)MIMEBodyPartInputStream(PushbackInputStream inStream, byte[] boundary, Attachments parent)MIMEBodyPartInputStream(PushbackInputStream inStream, byte[] boundary, Attachments parent, int pushbacksize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetBoundaryStatus()intread()intread(byte[] b)intread(byte[] b, int off, int len)-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
MIMEBodyPartInputStream
public MIMEBodyPartInputStream(PushbackInputStream inStream, byte[] boundary)
- Parameters:
inStream-boundary-
-
MIMEBodyPartInputStream
public MIMEBodyPartInputStream(PushbackInputStream inStream, byte[] boundary, Attachments parent)
- Parameters:
inStream-boundary-parent-
-
MIMEBodyPartInputStream
public MIMEBodyPartInputStream(PushbackInputStream inStream, byte[] boundary, Attachments parent, int pushbacksize)
- Parameters:
inStream-boundary-parent-pushbacksize- <= size of pushback buffer on inStream
-
-
Method Detail
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
getBoundaryStatus
public boolean getBoundaryStatus()
-
-