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 Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      int getFileId()  
      long getFileSize()  
      int read​(java.nio.ByteBuffer buffer, long offset)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • getFileSize

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

        public int getFileId()