类 MimeBoundaryInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.sh.mail.mime4j.io.LineReaderInputStream
com.sh.mail.mime4j.io.MimeBoundaryInputStream
- 所有已实现的接口:
Closeable,AutoCloseable
Description:
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- Aug 16, 2012
-
字段概要
从类继承的字段 java.io.FilterInputStream
in -
构造器概要
构造器构造器说明MimeBoundaryInputStream(BufferedLineReaderInputStream inbuffer, String boundary) Creates a new MimeBoundaryInputStream.MimeBoundaryInputStream(BufferedLineReaderInputStream inbuffer, String boundary, boolean strict) Creates a new MimeBoundaryInputStream. -
方法概要
修饰符和类型方法说明voidclose()Closes the underlying stream.booleaneof()booleanbooleanbooleanbooleanintread()intread(byte[] b, int off, int len) booleanintreadLine(ByteArrayBuffer dst) Reads one line of text into the givenByteArrayBuffer.toString()booleanunread(ByteArrayBuffer buf) Tries to unread the last read line.从类继承的方法 java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
构造器详细资料
-
MimeBoundaryInputStream
public MimeBoundaryInputStream(BufferedLineReaderInputStream inbuffer, String boundary, boolean strict) throws IOException Creates a new MimeBoundaryInputStream.- 参数:
inbuffer- The underlying stream.boundary- Boundary string (not including leading hyphens).strict- boolean- 抛出:
IOException- when boundary is too long
-
MimeBoundaryInputStream
public MimeBoundaryInputStream(BufferedLineReaderInputStream inbuffer, String boundary) throws IOException Creates a new MimeBoundaryInputStream.- 参数:
inbuffer- The underlying stream.boundary- Boundary string (not including leading hyphens).- 抛出:
IOException- when boundary is too long
-
-
方法详细资料
-
close
Closes the underlying stream.- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable- 覆盖:
close在类中FilterInputStream- 抛出:
IOException- on I/O errors.
-
markSupported
public boolean markSupported()- 覆盖:
markSupported在类中FilterInputStream- 另请参阅:
-
readAllowed
- 抛出:
IOException
-
read
- 覆盖:
read在类中FilterInputStream- 抛出:
IOException- 另请参阅:
-
read
- 覆盖:
read在类中FilterInputStream- 抛出:
IOException
-
readLine
从类复制的说明:LineReaderInputStreamReads one line of text into the givenByteArrayBuffer.- 指定者:
readLine在类中LineReaderInputStream- 参数:
dst- Destination- 返回:
- number of bytes copied or
-1if the end of the stream has been reached. - 抛出:
MaxLineLimitException- if the line exceeds a limit on the line length imposed by a subclass.IOException- in case of an I/O error.
-
isEmptyStream
public boolean isEmptyStream() -
isFullyConsumed
public boolean isFullyConsumed() -
isLastPart
public boolean isLastPart() -
eof
public boolean eof() -
toString
-
unread
从类复制的说明:LineReaderInputStreamTries to unread the last read line. Implementation may refuse to unread a new buffer until the previous unread one has been competely consumed. Implementations will directly use the byte array backed by buf, so make sure to not alter it anymore once this method has been called.- 指定者:
unread在类中LineReaderInputStream- 参数:
buf- ByteArrayBuffer- 返回:
- true if the unread has been succesfull.
-