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

Quick Search    Search Deep

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

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

public class RemoteZipResource
extends Resource

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

Version:
$Revision : 1.1 $

Field Summary
(package private)  java.net.URL zipFileURL
           
 
Fields inherited from class com.lutris.classloader.Resource
lastModifiedTime, location, logChannel, loggingEnabled, logLevel, name, size
 
Constructor Summary
private RemoteZipResource(java.lang.String name, ClassPathEntry location, com.lutris.logging.LogChannel loadLogChannel)
           
 
Method Summary
 long getCurrentLastModifiedTime()
          Get current last-modification time of resource.
 java.io.InputStream getInputStream()
          Gets the specified resource as an input stream.
private  java.util.zip.ZipInputStream getZipInputStream()
           
 
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

zipFileURL

java.net.URL zipFileURL
Constructor Detail

RemoteZipResource

private RemoteZipResource(java.lang.String name,
                          ClassPathEntry location,
                          com.lutris.logging.LogChannel loadLogChannel)
                   throws java.io.FileNotFoundException
Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Gets the specified resource as an input stream.

Specified by:
getInputStream in class Resource

getZipInputStream

private java.util.zip.ZipInputStream getZipInputStream()
                                                throws java.io.FileNotFoundException

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