Class TrackableByteArrayInputStream

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

    public class TrackableByteArrayInputStream
    extends java.io.ByteArrayInputStream
    A Byte array that notifies an instance of child interface "Tracker" about the progress through the stream
    • Method Detail

      • read

        public int read()
        Overrides:
        read in class java.io.ByteArrayInputStream
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
        Overrides:
        read in class java.io.ByteArrayInputStream
      • reset

        public void reset()
        Overrides:
        reset in class java.io.ByteArrayInputStream
      • skip

        public long skip​(long n)
        Overrides:
        skip in class java.io.ByteArrayInputStream
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.ByteArrayInputStream
        Throws:
        java.io.IOException