Package com.blackrook.fs.archive
Class ClasspathArchive.ClasspathFile
- java.lang.Object
-
- com.blackrook.fs.FSFile
-
- com.blackrook.fs.archive.ClasspathArchive.ClasspathFile
-
- All Implemented Interfaces:
Comparable<FSFile>
- Enclosing class:
- ClasspathArchive
protected class ClasspathArchive.ClasspathFile extends FSFile
-
-
Constructor Summary
Constructors Constructor Description ClasspathFile(URL file)
-
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()
-
-
-
Field Detail
-
fileURL
protected URL fileURL
-
-
Constructor Detail
-
ClasspathFile
public ClasspathFile(URL file)
-
-
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()
-
-