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.Closeable
close
在接口中 java.lang.AutoCloseable
close
在类中 java.io.FilterInputStream
java.io.IOException
- on I/O errors.public boolean markSupported()
markSupported
在类中 java.io.FilterInputStream
InputStream.markSupported()
public boolean readAllowed() throws java.io.IOException
java.io.IOException
public int read() throws java.io.IOException
read
在类中 java.io.FilterInputStream
java.io.IOException
InputStream.read()
public int read(byte[] b, int off, int len) throws java.io.IOException
read
在类中 java.io.FilterInputStream
java.io.IOException
public int readLine(ByteArrayBuffer dst) throws java.io.IOException
LineReaderInputStream
ByteArrayBuffer
.readLine
在类中 LineReaderInputStream
dst
- 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.Object
public boolean unread(ByteArrayBuffer buf)
LineReaderInputStream
unread
在类中 LineReaderInputStream
buf
- ByteArrayBuffer