|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream org.w3c.www.mime.MultipartInputStream
public class MultipartInputStream
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.
Constructor Summary | |
---|---|
MultipartInputStream(java.io.InputStream in,
byte[] boundary)
Construct a new multipart input stream. |
Method Summary | |
---|---|
int |
available()
|
boolean |
nextInputStream()
Switch to the next available part of data. |
int |
read()
Read one byte of data from the current part. |
int |
read(byte[] b,
int off,
int len)
Read n bytes of data from the current part. |
long |
skip(long n)
|
protected boolean |
skipToBoundary()
|
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 MultipartInputStream(java.io.InputStream in, byte[] boundary)
in
- The initial (multipart) input stream.boundary
- The input stream MIME boundary.Method Detail |
---|
protected boolean skipToBoundary() throws java.io.IOException
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
- If some IO error occured.public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
- If some IO error occured.public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public boolean nextInputStream() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |