Interface File

All Known Implementing Classes:
Binary, ExplorerFile

public interface File
Class representing a file
  • Method Details

    • getInputStream

      Returns the data stream.
      Returns:
      the data stream.
    • getLastModificationDate

      Returns the last modification date.
      Returns:
      the last modification date.
    • setLastModificationDate

      void setLastModificationDate(ZonedDateTime lastModificationDate)
      Sets the last modification date of the file's data
      Parameters:
      lastModificationDate - the last modification date to set
    • getLength

      long getLength()
      Returns the length of the data stream.
      Returns:
      the length of the data stream.
    • getMimeType

      Returns the data mime-type.
      Returns:
      the data mime-type.
    • setMimeType

      void setMimeType(String mimeType)
      Sets the mime type of the file's data
      Parameters:
      mimeType - the mime type to set
    • getName

      Retrieves the file's name
      Returns:
      the file's name