public class MimeBoundaryInputStream extends LineReaderInputStream
Description:
Title:首亨软件 - TSS/CRM等
| 构造器和说明 |
|---|
MimeBoundaryInputStream(BufferedLineReaderInputStream inbuffer,
java.lang.String boundary)
Creates a new MimeBoundaryInputStream.
|
MimeBoundaryInputStream(BufferedLineReaderInputStream inbuffer,
java.lang.String boundary,
boolean strict)
Creates a new MimeBoundaryInputStream.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Closes the underlying stream.
|
boolean |
eof() |
boolean |
isEmptyStream() |
boolean |
isFullyConsumed() |
boolean |
isLastPart() |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
boolean |
readAllowed() |
int |
readLine(ByteArrayBuffer dst)
Reads one line of text into the given
ByteArrayBuffer. |
java.lang.String |
toString() |
boolean |
unread(ByteArrayBuffer buf)
Tries to unread the last read line.
|
public MimeBoundaryInputStream(BufferedLineReaderInputStream inbuffer, java.lang.String boundary, boolean strict) throws java.io.IOException
inbuffer - The underlying stream.boundary - Boundary string (not including leading hyphens).strict - booleanjava.io.IOException - when boundary is too longpublic MimeBoundaryInputStream(BufferedLineReaderInputStream inbuffer, java.lang.String boundary) throws java.io.IOException
inbuffer - The underlying stream.boundary - Boundary string (not including leading hyphens).java.io.IOException - when boundary is too longpublic void close()
throws java.io.IOException
close 在接口中 java.io.Closeableclose 在接口中 java.lang.AutoCloseableclose 在类中 java.io.FilterInputStreamjava.io.IOException - on I/O errors.public boolean markSupported()
markSupported 在类中 java.io.FilterInputStreamInputStream.markSupported()public boolean readAllowed()
throws java.io.IOException
java.io.IOExceptionpublic int read()
throws java.io.IOException
read 在类中 java.io.FilterInputStreamjava.io.IOExceptionInputStream.read()public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read 在类中 java.io.FilterInputStreamjava.io.IOExceptionpublic int readLine(ByteArrayBuffer dst) throws java.io.IOException
LineReaderInputStreamByteArrayBuffer.readLine 在类中 LineReaderInputStreamdst - Destination-1 if the end of
the stream has been reached.MaxLineLimitException - if the line exceeds a limit on
the line length imposed by a subclass.java.io.IOException - in case of an I/O error.public boolean isEmptyStream()
public boolean isFullyConsumed()
public boolean isLastPart()
public boolean eof()
public java.lang.String toString()
toString 在类中 java.lang.Objectpublic boolean unread(ByteArrayBuffer buf)
LineReaderInputStreamunread 在类中 LineReaderInputStreambuf - ByteArrayBuffer