org.esa.beam.util
Class ResourceInstaller

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

public class ResourceInstaller
extends Object

Installls 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.
ResourceInstaller(URL sourceUrl, String relSourcePath, URL targetUrl)
          Deprecated. in 4.1, use ResourceInstaller(java.net.URL, String, java.io.File) instead
 
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 sourceUrl,
                         String relSourcePath,
                         URL targetUrl)
Deprecated. in 4.1, use ResourceInstaller(java.net.URL, String, java.io.File) instead


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 -
Throws:
IOException

getSourceUrl

public static URL getSourceUrl(Class aClass)


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