类 LineReaderInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.sh.mail.mime4j.io.LineReaderInputStream
- 所有已实现的接口:
Closeable,AutoCloseable
Description:
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- Aug 16, 2012
-
字段概要
从类继承的字段 java.io.FilterInputStream
in -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract intreadLine(ByteArrayBuffer dst) Reads one line of text into the givenByteArrayBuffer.abstract booleanunread(ByteArrayBuffer buf) Tries to unread the last read line.从类继承的方法 java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip从类继承的方法 java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
构造器详细资料
-
LineReaderInputStream
-
-
方法详细资料
-
readLine
Reads one line of text into the givenByteArrayBuffer.- 参数:
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.
-
unread
Tries 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.- 参数:
buf- ByteArrayBuffer- 返回:
- true if the unread has been succesfull.
-