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 intcompareTo(FSFile fsf)longgetDate()InputStreamgetInputStream()Returns an InputStream of a file within this wrapped file so that it may be read via a stream.StringgetName()StringgetPath()longlength()
-
-
-
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:FSFileReturns an InputStream of a file within this wrapped file so that it may be read via a stream.- Specified by:
getInputStreamin 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()
-
-