Class OpenByteArrayInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class OpenByteArrayInputStream
    extends java.io.ByteArrayInputStream
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      byte[] getBackingArray()  
      byte[] getCopyOfBackingArray()  
      byte peak()
      Deprecated.
      byte peek()
      Reads a byte
      int position()  
      void position​(int position)  
      int size()  
      • 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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OpenByteArrayInputStream

        public OpenByteArrayInputStream​(byte[] buf)
    • Method Detail

      • size

        public int size()
      • position

        public int position()
      • position

        public void position​(int position)
      • peek

        public byte peek()
                  throws java.io.EOFException
        Reads a byte
        Throws:
        java.io.EOFException
      • peak

        @Deprecated
        public byte peak()
                  throws java.io.EOFException
        Deprecated.
        Throws:
        java.io.EOFException
      • getBackingArray

        public byte[] getBackingArray()
      • getCopyOfBackingArray

        public byte[] getCopyOfBackingArray()