Class ByteArrayIOStream.ByteArrayIOInputStream

    • Field Summary

      • Fields inherited from class java.io.ByteArrayInputStream

        buf, count, mark, pos
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ByteArrayIOInputStream​(byte[] buf, int count)  
        ByteArrayIOInputStream​(byte[] buf, int offset, int length)  
      protected ByteArrayIOInputStream​(java.io.InputStream is)
      creates an input output stream class from any stream if is already is a buffered inputstream, no copy is made
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String asString​(int maxLen)  
      byte[] getBuf()  
      long getCount()  
      ByteArrayIOStream.ByteArrayIOInputStream getNewStream()
      get a new input stream that starts at pos
      void seek​(long pos)  
      long tell()  
      java.lang.String toString()  
      • Methods inherited from class java.io.ByteArrayInputStream

        available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.io.InputStream

        nullInputStream, read, readNBytes
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ByteArrayIOInputStream

        public ByteArrayIOInputStream​(byte[] buf,
                                      int offset,
                                      int length)
        Parameters:
        buf -
        offset -
        length -
      • ByteArrayIOInputStream

        protected ByteArrayIOInputStream​(byte[] buf,
                                         int count)
        Parameters:
        buf -
        count -
      • ByteArrayIOInputStream

        protected ByteArrayIOInputStream​(java.io.InputStream is)
        creates an input output stream class from any stream if is already is a buffered inputstream, no copy is made
        Parameters:
        is - the inputstream to buffer
    • Method Detail

      • seek

        public void seek​(long pos)
        Parameters:
        pos -
      • tell

        public long tell()
        Returns:
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()
      • getBuf

        public byte[] getBuf()
        Returns:
      • getCount

        public long getCount()
        Returns:
      • asString

        public java.lang.String asString​(int maxLen)