org.apache.struts.upload
class MultipartValueStream extends java.io.InputStream
See RFC 1867 (http://info.internet.isi.edu:80/in-notes/rfc/files/rfc1867.txt) for details about the protocol.
Modifier and Type | Field and Description |
---|---|
private byte[] |
boundaryBytes
Deprecated.
byte buffer with the boundary
|
private boolean |
boundaryReached
Deprecated.
have we reached the boundary?
|
private boolean |
finalBoundaryReached
Deprecated.
is the boundary found a final boundary?
|
static java.lang.String |
HEADER_ENCODING
Deprecated.
|
private java.io.InputStream |
in
Deprecated.
the underlying stream
|
private int |
matchedBoundaryBytes
Deprecated.
how many curretly matched boundary bytes?
|
private int |
readAheadBufferEndI
Deprecated.
The end index for the read ahead cyclic buffer (points to the last byte)
|
private int |
readAheadBufferStartI
Deprecated.
The start index for the read ahead cyclic buffer (points to the first byte)
|
private byte[] |
readAheadBytes
Deprecated.
the read ahead buffer (cyclic)
|
Constructor and Description |
---|
MultipartValueStream(java.io.InputStream in,
java.lang.String boundary)
Deprecated.
Create a stream that stops reading at the boundary
NOTE: the boundary parameter is without the trailing dashes "--".
|
Modifier and Type | Method and Description |
---|---|
boolean |
encounteredFinalBoundary()
Deprecated.
|
int |
read()
Deprecated.
Read the next byte
|
public static final java.lang.String HEADER_ENCODING
private java.io.InputStream in
private byte[] boundaryBytes
private int matchedBoundaryBytes
private byte[] readAheadBytes
private int readAheadBufferStartI
private int readAheadBufferEndI
private boolean boundaryReached
private boolean finalBoundaryReached
public MultipartValueStream(java.io.InputStream in, java.lang.String boundary) throws java.io.IOException
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
- if the ending boundary is never foundpublic boolean encounteredFinalBoundary() throws javax.servlet.ServletException
javax.servlet.ServletException
- if the boundary has not yet been reachedCopyright ? 2000-2014 - The Apache Software Foundation