Package 

Class BufferedReplayInputStream

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

    
    public final class BufferedReplayInputStream
    extends ReplayInputStream
                        

    A super naive implementation of a replay input stream: if we call the seek method even once, then we will stop reading the original stream, and only use the in memory data.

    Check https://netty.io/4.0/api/io/netty/buffer/Unpooled.html#buffer-int-

    • Method Summary

      Modifier and Type Method Description
      Unit seek(Integer position)
      Integer getPosition()
      Integer read()
      Integer read(ByteArray byteArray, Integer offset, Integer length)
      Integer read(ByteArray byteArray)
      Unit close()
      • Methods inherited from class java.lang.AutoCloseable

        equals, hashCode, toString
      • Methods inherited from class app.redwarp.gif.decoder.streams.ReplayInputStream

        available, mark, markSupported, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait