|
EAF 7.6 Util | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lutris.classloader.Resource
com.lutris.classloader.LocalDirResource
public class LocalDirResource
A Resource
that is a file on the local machine in
a specified directory. The directory is represented by a
ClassPathEntry
, and the filename is specified by a String.
ClassPathEntry
,
Resource
,
File
Field Summary |
---|
Fields inherited from class com.lutris.classloader.Resource |
---|
lastModifiedTime, location, logChannel, loggingEnabled, logLevel, name, size |
Constructor Summary | |
---|---|
protected |
LocalDirResource(java.lang.String name,
ClassPathEntry location,
com.lutris.logging.LogChannel loadLogChannel)
Constructs local directory resource with specified name and location. |
Method Summary | |
---|---|
long |
getCurrentLastModifiedTime()
Get current last-modification time of resource. |
java.io.File |
getFile()
Get the file associate with this resource. |
java.io.InputStream |
getInputStream()
Gets input stream representing resource. |
Methods inherited from class com.lutris.classloader.Resource |
---|
equals, getBytes, getLastModifiedTime, getLocation, getName, getSize, getTime, hasBeenModified, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected LocalDirResource(java.lang.String name, ClassPathEntry location, com.lutris.logging.LogChannel loadLogChannel) throws java.io.FileNotFoundException
name
- The file name of the resource.location
- The location of the resource.loadLogChannel
- The log channel for logging.
java.io.FileNotFoundException
- thrown if the desired file does not exist, does not have
read permission or if the desired file exists above the
relative root of the LocalDirResource
.Resource
,
ClassPathEntry
Method Detail |
---|
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class com.lutris.classloader.Resource
java.io.IOException
- if the input stream can not be constructed.InputStream
public long getCurrentLastModifiedTime() throws java.io.FileNotFoundException
getCurrentLastModifiedTime
in class com.lutris.classloader.Resource
java.io.FileNotFoundException
public java.io.File getFile()
|
EAF 7.6 Util | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |