Class FileByteChunkProvider

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

    public class FileByteChunkProvider
    extends ByteChunkProvider
    • Constructor Detail

      • FileByteChunkProvider

        public FileByteChunkProvider​(java.io.File file)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • FileByteChunkProvider

        public FileByteChunkProvider​(java.io.File file,
                                     long offset)
                              throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getChunk

        protected int getChunk​(byte[] chunk)
                        throws java.io.IOException
        Specified by:
        getChunk in class ByteChunkProvider
        Throws:
        java.io.IOException
      • 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 ByteChunkProvider
        Throws:
        java.io.IOException