artisynth.core.util
Class ArtisynthFileGrabber

java.lang.Object
  extended by maspack.fileutil.FileGrabber
      extended by artisynth.core.util.ArtisynthFileGrabber

public class ArtisynthFileGrabber
extends FileGrabber

A FileGrabber that by default looks for files in the ArtiSynth source directory tree. The main purpose is to easily get file handles from within zip files using the {FileGrabber.getInputStream(String) function.

Author:
Antonio

Field Summary
 
Fields inherited from class maspack.fileutil.FileGrabber
CHECK_HASH, DEFAULT_LOG_LEVEL, DEFAULT_LOGGER, DEFAULT_OPTIONS, DOWNLOAD_ZIP, FORCE_REMOTE, myOptions
 
Constructor Summary
ArtisynthFileGrabber(java.io.File zipFile, java.lang.String subpath)
          Constructs a FileGrabber object for reading from zip files
ArtisynthFileGrabber(java.lang.Object obj, java.lang.String relPathOrZip)
          Creates a FileGrabber object that looks for files in the source tree.
ArtisynthFileGrabber(java.lang.Object obj, java.lang.String relPathOrZip, java.lang.String subpath)
          Creates a FileGrabber object that looks for files in the source tree.
 
Method Summary
 
Methods inherited from class maspack.fileutil.FileGrabber
addIdentityRepository, addTransferListener, addUserAuthenticator, closeStreams, equalsHash, equalsHash, get, get, get, get, get, get, getAbsoluteFile, getAbsoluteFile, getAbsoluteURI, getAbsoluteURI, getConsoleProgressPrinting, getDownloadDir, getInputStream, getInputStream, getInputStream, getInputStream, getInputStream, getInputStream, getInputStream, getLastFile, getLocal, getLocal, getLocalHash, getLocalHash, getLogger, getOptions, getRemote, getRemote, getRemote, getRemote, getRemoteHash, getRemoteHash, getRemoteSource, getStaticGrabber, getTransferListeners, getTransferMonitor, removeTransferListener, setConsoleProgressPrinting, setDownloadDir, setDownloadDir, setLogger, setMonitorSleep, setOptions, setRemoteSource, setRemoteSource, setStaticGrabber, setTransferMonitor, setVerbosityLevel, setVerbosityLevel, staticGet, staticGet, staticGet, staticGet, wasLastRemote
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArtisynthFileGrabber

public ArtisynthFileGrabber(java.lang.Object obj,
                            java.lang.String relPathOrZip)
Creates a FileGrabber object that looks for files in the source tree.

Parameters:
obj - object associated with source directory
relPathOrZip - either a relative path to read files from, or a zip file

ArtisynthFileGrabber

public ArtisynthFileGrabber(java.lang.Object obj,
                            java.lang.String relPathOrZip,
                            java.lang.String subpath)
Creates a FileGrabber object that looks for files in the source tree.

Parameters:
obj - object associated with source directory
relPathOrZip - either a relative path to read files from, or a zip file
subpath - An additional path to be appended, for instance within a provided zip file

ArtisynthFileGrabber

public ArtisynthFileGrabber(java.io.File zipFile,
                            java.lang.String subpath)
Constructs a FileGrabber object for reading from zip files

Parameters:
zipFile - the file from which to extract data
subpath - sub folder within the zip file to use by default