Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.lutris.classloader
Class LocalDirResource  view LocalDirResource download LocalDirResource.java

java.lang.Object
  extended bycom.lutris.classloader.Resource
      extended bycom.lutris.classloader.LocalDirResource

public class LocalDirResource
extends Resource

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.

Version:
$Revision : 1.1 $

Field Summary
private  java.io.File file
          The file that represents this resource.
 
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
 

Field Detail

file

private java.io.File file
The file that represents this resource.

Constructor Detail

LocalDirResource

protected LocalDirResource(java.lang.String name,
                           ClassPathEntry location,
                           com.lutris.logging.LogChannel loadLogChannel)
                    throws java.io.FileNotFoundException
Constructs local directory resource with specified name and location.

Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Gets input stream representing resource.

Specified by:
getInputStream in class Resource

getCurrentLastModifiedTime

public long getCurrentLastModifiedTime()
                                throws java.io.FileNotFoundException
Get current last-modification time of resource. This is the time on the disk file the resource is associated with.

Specified by:
getCurrentLastModifiedTime in class Resource

getFile

public java.io.File getFile()
Get the file associate with this resource.