Class BufferedLineReaderInputStream

    • Constructor Detail

      • BufferedLineReaderInputStream

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

        public BufferedLineReaderInputStream​(InputStream instream,
                                             int buffersize)
    • Method Detail

      • ensureCapacity

        public void ensureCapacity​(int len)
      • hasBufferedData

        public boolean hasBufferedData()
      • truncate

        public void truncate()
      • readAllowed

        protected boolean readAllowed()
      • indexOf

        public int indexOf​(byte[] pattern,
                           int off,
                           int len)
        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.

      • 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.

      • 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)
      • unread

        public boolean unread​(ByteArrayBuffer buf)
        Description copied from class: 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.
        Specified by:
        unread in class LineReaderInputStream
        Returns:
        true if the unread has been succesfull.