Class FolderArchive.FolderFile

java.lang.Object
com.blackrook.fs.FSFile
com.blackrook.fs.archive.FolderArchive.FolderFile
All Implemented Interfaces:
Comparable<FSFile>
Enclosing class:
FolderArchive

protected class FolderArchive.FolderFile extends FSFile
Author:
Matthew Tropiano
  • Field Details

    • fileRef

      protected File fileRef
  • Constructor Details

    • FolderFile

      public FolderFile(File f)
  • Method Details

    • getInputStream

      public InputStream getInputStream() throws IOException
      Description copied from class: FSFile
      Returns an InputStream of a file within this wrapped file so that it may be read via a stream.
      Specified by:
      getInputStream in class FSFile
      Returns:
      an InputStream that can read the file, or null if the path refers to a location that is not inside this file.
      Throws:
      IOException - if acquiring the stream throws an exception.
    • getDate

      public long getDate()
      Specified by:
      getDate in class FSFile
      Returns:
      the date that this file was created/modified.
    • getName

      public String getName()
      Specified by:
      getName in class FSFile
      Returns:
      the name of this file in the file system.
    • getPath

      public String getPath()
      Specified by:
      getPath in class FSFile
      Returns:
      the path of this file from the root of the system.
    • length

      public long length()
      Specified by:
      length in class FSFile
      Returns:
      the length of this file in bytes.
    • compareTo

      public int compareTo(FSFile fsf)
      Specified by:
      compareTo in interface Comparable<FSFile>
      Overrides:
      compareTo in class FSFile
    • toString

      public String toString()
      Overrides:
      toString in class FSFile