Package com.blackrook.fs.archive
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
-
-
Constructor Summary
Constructors Constructor Description FolderFile(File f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(FSFile fsf)
long
getDate()
InputStream
getInputStream()
Returns an InputStream of a file within this wrapped file so that it may be read via a stream.String
getName()
String
getPath()
long
length()
String
toString()
-
-
-
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 classFSFile
- 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()
-
getName
public String getName()
-
getPath
public String getPath()
-
length
public long length()
-
compareTo
public int compareTo(FSFile fsf)
- Specified by:
compareTo
in interfaceComparable<FSFile>
- Overrides:
compareTo
in classFSFile
-
-