org.openstreetmap.osmosis.core.util
Class ResourceFileManager

java.lang.Object
  extended by org.openstreetmap.osmosis.core.util.ResourceFileManager

public class ResourceFileManager
extends java.lang.Object

Contains utility methods for dealing with resource files packaged within the application.

Author:
Brett Henderson

Constructor Summary
ResourceFileManager()
           
 
Method Summary
 void copyResourceToFile(java.lang.Class<?> callingClass, java.lang.String sourceResource, java.io.File destinationFile)
          Copies a packaged resource to a file on the file system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceFileManager

public ResourceFileManager()
Method Detail

copyResourceToFile

public void copyResourceToFile(java.lang.Class<?> callingClass,
                               java.lang.String sourceResource,
                               java.io.File destinationFile)
Copies a packaged resource to a file on the file system.

Parameters:
callingClass - The calling class is used to load the resource, this allows resources to be loaded with paths relative to the caller.
sourceResource - The input resource.
destinationFile - The output file.