| java.lang.Object java.io.InputStream org.w3c.www.mime.MultipartInputStream
MultipartInputStream | public class MultipartInputStream extends InputStream (Code) | | A class to handle multipart MIME input streams. See RC 1521.
This class handles multipart input streams, as defined by the RFC 1521.
It prvides a sequential interface to all MIME parts, and for each part
it delivers a suitable InputStream for getting its body.
|
Method Summary | |
public int | available() | public boolean | nextInputStream() Switch to the next available part of data. | public int | read() Read one byte of data from the current part. | public int | read(byte b, int off, int len) Read n bytes of data from the current part. | public long | skip(long n) | protected boolean | skipToBoundary() |
MultipartInputStream | public MultipartInputStream(InputStream in, byte boundary)(Code) | | Construct a new multipart input stream.
Parameters: in - The initial (multipart) input stream. Parameters: boundary - The input stream MIME boundary. |
nextInputStream | public boolean nextInputStream() throws IOException(Code) | | Switch to the next available part of data.
One can interrupt the current part, and use this method to switch
to next part before current part was totally read.
A boolean true if there next partis ready,or false if this was the last part. |
read | public int read() throws IOException(Code) | | Read one byte of data from the current part.
A byte of data, or -1 if end of file. exception: IOException - If some IO error occured. |
read | public int read(byte b, int off, int len) throws IOException(Code) | | Read n bytes of data from the current part.
the number of bytes data, read or -1 if end of file. exception: IOException - If some IO error occured. |
|
|