Class FileDownload

java.lang.Object
org.gcube.data.access.storagehub.fs.FileDownload
All Implemented Interfaces:
SHFile

public class FileDownload extends Object implements SHFile
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    FileDownload(org.gcube.common.storagehub.client.dsl.FileContainer fileContainer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
    getAttr(ru.serce.jnrfuse.struct.FileStat stat)
     
     
    int
    read(jnr.ffi.Pointer buf, long size, long offset)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.gcube.data.access.storagehub.fs.SHFile

    write
  • Field Details

    • logger

      public static org.slf4j.Logger logger
  • Constructor Details

    • FileDownload

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

    • 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()