|
|||||||||
| Home >> All >> com >> lutris >> [ mime overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.lutris.mime
Class MultipartMimeInput

java.lang.Objectcom.lutris.mime.MultipartMimeInput
- public class MultipartMimeInput
- extends java.lang.Object
Presents an incoming Multipart MIME message as a series of distinct MultipartMimeInputStream streams.
| Field Summary | |
protected boolean |
atEOF
True if the end of the input source has been reached and no more multipart sections are available to be read. |
protected MultipartMimeInputStream |
currentStream
The current section of Multipart input. |
protected com.lutris.util.BMByteSearch |
inputPattern
Pre-compiled Boyer-Moore pattern search object for the Mime boundary string. |
protected java.lang.String |
inputSeparator
The boundary string which separates different sections of the multipart Mime input. |
protected com.lutris.util.BMByteSearchStream |
inputSource
An input stream that does exact pattern searching using an efficient string matching algorithm. |
protected java.lang.String |
newlineString
The string that represents a newline for this instance of input. |
| Constructor Summary | |
MultipartMimeInput(java.io.InputStream source,
ContentHeader contentHeader)
Constructs a new MultipartMimeInput object from an input source of type InputStream and a ContentHeader
object. |
|
| Method Summary | |
void |
close()
Closes the input source and the current MultipartMimeInputStream object. |
MultipartMimeInputStream |
nextPart()
Returns the next section of the Multipart MIME stream as a MultipartMimeInputStream object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
currentStream
protected MultipartMimeInputStream currentStream
- The current section of Multipart input. This is maintained so that
it can be invalidated if a request is made to go to the next
section.
inputSource
protected com.lutris.util.BMByteSearchStream inputSource
- An input stream that does exact pattern searching using an efficient
string matching algorithm.
newlineString
protected java.lang.String newlineString
- The string that represents a newline for this instance of input.
This is necessary because some web browsers (typically on Unix
hosts) send LF instead of the Mime-required CR+LF.
inputSeparator
protected java.lang.String inputSeparator
- The boundary string which separates different sections of the
multipart Mime input.
inputPattern
protected com.lutris.util.BMByteSearch inputPattern
- Pre-compiled Boyer-Moore pattern search object for the Mime
boundary string.
atEOF
protected boolean atEOF
- True if the end of the input source has been reached and no
more multipart sections are available to be read.
| Constructor Detail |
MultipartMimeInput
public MultipartMimeInput(java.io.InputStream source, ContentHeader contentHeader) throws MimeException
- Constructs a new MultipartMimeInput object from an input source
of type
InputStreamand aContentHeaderobject. TheContentHeaderobject will usually be aContent-Typeheader and its value must begin with"multipart/"to indicate multipart Mime input. Other Mime types will cause aMimeExceptionto be thrown. In addition, a parameter called"boundary"must exist in the header, since multipart Mime input is split using a boundary string passed in theContent-Typeheader.
| Method Detail |
nextPart
public MultipartMimeInputStream nextPart() throws MimeException
- Returns the next section of the Multipart MIME stream as a
MultipartMimeInputStream object. Returns
nullif the end of the input source has been reached.Note:
Since Multipart MIME data flows in a single stream, calling this method causes the previously returned MultipartMimeInputStream to be automatically closed and its input to be skipped.
close
public void close()
throws MimeException
- Closes the input source and the current
MultipartMimeInputStreamobject. No more parts will be returned bynextPart.
|
|||||||||
| Home >> All >> com >> lutris >> [ mime overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.lutris.mime.MultipartMimeInput