|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream org.norther.tammi.acorn.io.PartialInputStream
public class PartialInputStream
An input stream wrapper for reading partial streams of multipart MIME messages as specified in RFC1521.
Constructor Summary | |
---|---|
PartialInputStream(InputStream in,
String boundary)
Constructs a new partial input stream. |
Method Summary | |
---|---|
int |
available()
Returns the number of bytes available in the multipart stream. |
boolean |
isPartAvailable()
Checks whether the next partial stream is available. |
int |
read()
Reads one byte of data from the current part. |
int |
read(byte[] b,
int off,
int len)
Reads n bytes of data from the current part. |
long |
skip(long n)
Skips the given number of bytes. |
Methods inherited from class java.io.InputStream |
---|
close, mark, markSupported, read, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PartialInputStream(InputStream in, String boundary)
in
- the multipart input stream.boundary
- the MIME boundary pattern.Method Detail |
---|
public int available() throws IOException
available
in class InputStream
IOException
- for I/O errors.public int read() throws IOException
read
in class InputStream
IOException
- for I/O errors.public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
b
- a byte buffer.off
- an offet to the buffer.len
- the number of bytes to read.
IOException
- for I/O errors.public long skip(long n) throws IOException
skip
in class InputStream
n
- the number of bytes to skip.
IOException
- for I/O errors.public boolean isPartAvailable() throws IOException
IOException
- for I/O errors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |