类 BufferedLineReaderInputStream

所有已实现的接口:
Closeable, AutoCloseable

public class BufferedLineReaderInputStream extends LineReaderInputStream

Description:

Title:首亨软件 - TSS/CRM等

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

    • BufferedLineReaderInputStream

      public BufferedLineReaderInputStream(InputStream instream, int buffersize, int maxLineLen)
    • BufferedLineReaderInputStream

      public BufferedLineReaderInputStream(InputStream instream, int buffersize)
  • 方法详细资料

    • ensureCapacity

      public void ensureCapacity(int len)
    • fillBuffer

      public int fillBuffer() throws IOException
      抛出:
      IOException
    • hasBufferedData

      public boolean hasBufferedData()
    • truncate

      public void truncate()
    • readAllowed

      protected boolean readAllowed()
    • read

      public int read() throws IOException
      覆盖:
      read 在类中 FilterInputStream
      抛出:
      IOException
    • read

      public int read(byte[] b, int off, int len) throws IOException
      覆盖:
      read 在类中 FilterInputStream
      抛出:
      IOException
    • read

      public int read(byte[] b) throws IOException
      覆盖:
      read 在类中 FilterInputStream
      抛出:
      IOException
    • markSupported

      public boolean markSupported()
      覆盖:
      markSupported 在类中 FilterInputStream
    • readLine

      public int readLine(ByteArrayBuffer dst) throws MaxLineLimitException, IOException
      从类复制的说明: LineReaderInputStream
      Reads one line of text into the given ByteArrayBuffer.
      指定者:
      readLine 在类中 LineReaderInputStream
      参数:
      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.
    • indexOf

      public int indexOf(byte[] pattern, int off, int len)
    • indexOf

      public int indexOf(byte[] pattern)
      Implements quick search algorithm as published by

      SUNDAY 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

      public String toString()
      覆盖:
      toString 在类中 Object
    • unread

      public boolean unread(ByteArrayBuffer buf)
      从类复制的说明: LineReaderInputStream
      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.
      指定者:
      unread 在类中 LineReaderInputStream
      参数:
      buf - ByteArrayBuffer
      返回:
      true if the unread has been succesfull.