Class FolderArchive.FolderFile

    • Field Detail

      • fileRef

        protected File fileRef
    • Constructor Detail

      • FolderFile

        public FolderFile​(File f)
    • Method Detail

      • 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.