类 BufferedLineReaderInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.sh.mail.mime4j.io.LineReaderInputStream
com.sh.mail.mime4j.io.BufferedLineReaderInputStream
- 所有已实现的接口:
Closeable,AutoCloseable
Description:
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- Aug 16, 2012
-
字段概要
从类继承的字段 java.io.FilterInputStream
in -
构造器概要
构造器构造器说明BufferedLineReaderInputStream(InputStream instream, int buffersize) BufferedLineReaderInputStream(InputStream instream, int buffersize, int maxLineLen) -
方法概要
修饰符和类型方法说明protected byte[]buf()intbyteAt(int pos) intcapacity()voidensureCapacity(int len) intbooleanintindexOf(byte b) intindexOf(byte[] pattern) Implements quick search algorithm as published byintindexOf(byte[] pattern, int off, int len) intindexOf(byte b, int off, int len) protected intlength()protected intlimit()booleanprotected intpos()intread()intread(byte[] b) intread(byte[] b, int off, int len) protected booleanintreadLine(ByteArrayBuffer dst) Reads one line of text into the givenByteArrayBuffer.protected intskip(int n) toString()voidtruncate()booleanunread(ByteArrayBuffer buf) Tries to unread the last read line.从类继承的方法 java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
构造器详细资料
-
BufferedLineReaderInputStream
-
BufferedLineReaderInputStream
-
-
方法详细资料
-
ensureCapacity
public void ensureCapacity(int len) -
fillBuffer
- 抛出:
IOException
-
hasBufferedData
public boolean hasBufferedData() -
truncate
public void truncate() -
readAllowed
protected boolean readAllowed() -
read
- 覆盖:
read在类中FilterInputStream- 抛出:
IOException
-
read
- 覆盖:
read在类中FilterInputStream- 抛出:
IOException
-
read
- 覆盖:
read在类中FilterInputStream- 抛出:
IOException
-
markSupported
public boolean markSupported()- 覆盖:
markSupported在类中FilterInputStream
-
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.
-
indexOf
public int indexOf(byte[] pattern, int off, int len) -
indexOf
public int indexOf(byte[] pattern) Implements quick search algorithm as published bySUNDAY D.M., 1990, A very fast substring search algorithm, Communications of the ACM . 33(8):132-142.
- 参数:
pattern- byte[]- 返回:
- int
-
indexOf
public int indexOf(byte b, int off, int len) -
indexOf
public int indexOf(byte b) -
byteAt
public int byteAt(int pos) -
buf
protected byte[] buf() -
pos
protected int pos() -
limit
protected int limit() -
length
protected int length() -
capacity
public int capacity() -
skip
protected int skip(int n) -
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.
-