com.infoengine.object
Class IeEncodedInputStream
java.lang.Object
java.io.InputStream
com.infoengine.object.IeInputStream
com.infoengine.object.IeMultipartInputStream
com.infoengine.object.IeEncodedInputStream
- public class IeEncodedInputStream
- extends IeMultipartInputStream
Method Summary |
int |
readLine(byte[] bbuf)
Reads the next line from the MIME input stream into a byte array. |
int |
readLine(byte[] decodedBytes,
int start,
int max)
Reads the next line from the MIME input stream into a byte array,
beginning at a specific index of the array and continuing until
the end of the line is detected or a maximum number of bytes is read. |
Methods inherited from class com.infoengine.object.IeMultipartInputStream |
eofRead, getBoundary, getContentHeader, getContentLength, getContentType, getParameter, getParameterNames, getParameterValues, getRequestContentType, getXGroups, pushBackCalled, pushBackHeader, readBlob, readBlob, readBlobInfo, readBoundary, readHeader, readRequest, readText, readText, readVdb, streamBlobs |
Methods inherited from class com.infoengine.object.IeInputStream |
available, close, getInputStream, mark, markSupported, read, read, read, readLine, readLine, reset, setInputStream, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BASE64_ENCODING
public static final String BASE64_ENCODING
- See Also:
- Constant Field Values
encodingStyle
protected String encodingStyle
eofRead
protected boolean eofRead
boundarySent
protected boolean boundarySent
IeEncodedInputStream
public IeEncodedInputStream()
IeEncodedInputStream
public IeEncodedInputStream(InputStream is,
String contentType,
String name,
String filename,
String encodingStyle)
throws IOException
readLine
public int readLine(byte[] bbuf)
throws IOException
- Description copied from class:
IeMultipartInputStream
- Reads the next line from the MIME input stream into a byte array.
If a complete line is read, the array will contain the text
of the line as well as the end of line character(s). If the next
line is longer than the supplied byte array, the byte array is
filled, and the method will need to be called again to read the
remainder of the line.
- Overrides:
readLine
in class IeMultipartInputStream
- Parameters:
bbuf
- The byte array in which to store the bytes read from the
input stream.
- Returns:
- The number of bytes read into the array.
- Throws:
IOException
- if the input stream can not be read
successfully.
readLine
public int readLine(byte[] decodedBytes,
int start,
int max)
throws IOException
- Description copied from class:
IeMultipartInputStream
- Reads the next line from the MIME input stream into a byte array,
beginning at a specific index of the array and continuing until
the end of the line is detected or a maximum number of bytes is read.
If a complete line is read, the array will contain the text
of the line as well as the end of line character(s). If the next
line is longer than the maximum number of bytes specified, the
method will need to be called again to read the remainder of the line.
- Overrides:
readLine
in class IeMultipartInputStream
- Parameters:
decodedBytes
- The byte array in which to store the bytes read from the
input stream.start
- The index of the array in which to store the first byte.max
- The maximum number of bytes to read.
- Returns:
- The number of bytes read into the array.
- Throws:
IOException
- if the input stream can not be read
successfully.