类 LineReaderInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.sh.mail.mime4j.io.LineReaderInputStream
所有已实现的接口:
Closeable, AutoCloseable
直接已知子类:
BufferedLineReaderInputStream, LineReaderInputStreamAdaptor, MimeBoundaryInputStream

public abstract class LineReaderInputStream extends FilterInputStream

Description:

Title:首亨软件 - TSS/CRM等

从以下版本开始:
Aug 16, 2012
  • 构造器详细资料

    • LineReaderInputStream

      protected LineReaderInputStream(InputStream in)
  • 方法详细资料

    • readLine

      public abstract int readLine(ByteArrayBuffer dst) throws MaxLineLimitException, IOException
      Reads one line of text into the given ByteArrayBuffer.
      参数:
      dst - Destination
      返回:
      number of bytes copied or -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.
      IOException - in case of an I/O error.
    • unread

      public abstract boolean unread(ByteArrayBuffer buf)
      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.