DODS 5.1 API

com.lutris.classloader
Class RemoteDirResource

java.lang.Object
  |
  +--com.lutris.classloader.Resource
        |
        +--com.lutris.classloader.RemoteDirResource

public class RemoteDirResource
extends Resource

A Resource that is a file on a remote machine in a specified directory. The directory is represented by a ClassPathEntry, and the filename is specified by a String.

Version:
$Revision : 1.1 $
Author:
Kristen Pol, Lutris Technologies
See Also:
MultiClassLoader, ClassPathEntry, Resource, File

Field Summary
 
Fields inherited from class com.lutris.classloader.Resource
lastModifiedTime, location, logger, loggingEnabled, logLevel, name, size
 
Method Summary
 long getCurrentLastModifiedTime()
          Get current last-modification time of 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
 

Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Description copied from class: Resource
Gets input stream representing resource.

This method is abstract and must be implemented by all subclasses. The getBytes method also depends upon this implementation.

Specified by:
getInputStream in class Resource
Returns:
the input stream that represents the resource.
Throws:
java.io.IOException - if the input stream can not be constructed.

getCurrentLastModifiedTime

public long getCurrentLastModifiedTime()
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
Returns:
the last-modified time of the permanent copy of the resource in milliseconds.

DODS 5.1 API