Class PngSizeInfo.ReaderBuffer

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Enclosing class:
    PngSizeInfo

    static class PngSizeInfo.ReaderBuffer
    extends PngSizeInfo.Reader
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ReaderBuffer​(java.nio.channels.ReadableByteChannel p_i48136_1_)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      private void fillReadBuffer​(int p_195688_1_)  
      int read​(long p_195683_1_, int p_195683_3_)  
      void skip​(int p_195684_1_)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • channel

        private final java.nio.channels.ReadableByteChannel channel
      • readBufferAddress

        private long readBufferAddress
      • bufferSize

        private int bufferSize
      • read

        private int read
      • consumed

        private int consumed
    • Constructor Detail

      • ReaderBuffer

        private ReaderBuffer​(java.nio.channels.ReadableByteChannel p_i48136_1_)
    • Method Detail

      • fillReadBuffer

        private void fillReadBuffer​(int p_195688_1_)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public int read​(long p_195683_1_,
                        int p_195683_3_)
                 throws java.io.IOException
        Specified by:
        read in class PngSizeInfo.Reader
        Throws:
        java.io.IOException
      • skip

        public void skip​(int p_195684_1_)
                  throws java.io.IOException
        Specified by:
        skip in class PngSizeInfo.Reader
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in class PngSizeInfo.Reader
        Throws:
        java.io.IOException