Class FileDownload

  • All Implemented Interfaces:
    SHFile

    public class FileDownload
    extends Object
    implements SHFile
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
    • Constructor Detail

      • FileDownload

        public FileDownload​(org.gcube.common.storagehub.client.dsl.FileContainer fileContainer)
                     throws Exception
        Throws:
        Exception
    • Method Detail

      • read

        public int read​(jnr.ffi.Pointer buf,
                        long size,
                        long offset)
        Specified by:
        read in interface SHFile
      • flush

        public int flush()
        Specified by:
        flush in interface SHFile
      • getAttr

        public int getAttr​(ru.serce.jnrfuse.struct.FileStat stat)
        Specified by:
        getAttr in interface SHFile
      • getOutputFile

        public File getOutputFile()