org.esa.beam.util
Class ResourceInstaller

java.lang.Object
  extended by org.esa.beam.util.ResourceInstaller

public class ResourceInstaller
extends Object

Installs resources from a given source to a given target.

Version:
$Revision$ $Date$
Author:
Marco Peters

Constructor Summary
ResourceInstaller(URL sourceBaseUrl, String sourceRelPath, File targetDir)
          Creates an instance with a given source to a given target.
 
Method Summary
static URL getSourceUrl(Class aClass)
           
 void install(String patternString, com.bc.ceres.core.ProgressMonitor pm)
          Installs all resources found, matching the given pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceInstaller

public ResourceInstaller(URL sourceBaseUrl,
                         String sourceRelPath,
                         File targetDir)
Creates an instance with a given source to a given target.

Parameters:
sourceBaseUrl - the source's base URL
sourceRelPath - the source's relative path
targetDir - the target directory
Method Detail

install

public void install(String patternString,
                    com.bc.ceres.core.ProgressMonitor pm)
             throws IOException
Installs all resources found, matching the given pattern. Existing resources are left as-is and are not overwritten.

Parameters:
patternString - the pattern
pm - progress monitor for indicating progress
Throws:
IOException

getSourceUrl

public static URL getSourceUrl(Class aClass)


Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.