argos.deploy
Class JarResource
java.lang.Object
argos.deploy.JarResource
public final class JarResource
- extends Object
Created on 30.jun.2006
JarResource: JarResource maps all resources included in a Zip or Jar file. Additionaly, it
provides a method to extract one as a blob.
- Author:
- Dan Peder Eriksen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JarResource
public JarResource(File jarFileName)
- creates a JarResource. It extracts all resources from a Jar into an internal hashtable, keyed
by resource names.
- Parameters:
jarFileName
- a jar or zip file
reload
public void reload()
getResource
public byte[] getResource(String name)
- Extracts a jar resource as a blob.
- Parameters:
name
- a resource name.
hasFile
public boolean hasFile(String filename)
getFile
public File getFile()
Copyright © 2004-2007 University of Troms?. All Rights Reserved.