Class FileResource

    • Constructor Detail

      • FileResource

        public FileResource​(File file)
    • Method Detail

      • length

        public long length()
        Description copied from interface: Resource
        Returns the length in bytes of the response body.
        Specified by:
        length in interface Resource
      • dispose

        public void dispose()
        Description copied from interface: Resource
        Indicates the system no longer needs to keep this response body and any system resources associated with it may be reclaimed.
        Specified by:
        dispose in interface Resource