Class FileProvider.Handle

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

    public static final class FileProvider.Handle
    extends java.lang.Object
    implements java.io.Closeable
    • Method Detail

      • read

        public int read​(java.nio.ByteBuffer buffer,
                        long offset)
                 throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getFileSize

        public long getFileSize()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getFileId

        public int getFileId()