org.codehaus.plexus.resource
Class DefaultResourceManager

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.codehaus.plexus.resource.DefaultResourceManager
All Implemented Interfaces:
org.codehaus.plexus.logging.LogEnabled, ResourceManager

public class DefaultResourceManager
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements ResourceManager

Version:
$Id: DefaultResourceManager.java 4955 2006-12-03 02:45:07Z jvanzyl $
Author:
Trygve Laugstøl, Jason van Zyl

Field Summary
 
Fields inherited from interface org.codehaus.plexus.resource.ResourceManager
ROLE
 
Constructor Summary
DefaultResourceManager()
           
 
Method Summary
 void addSearchPath(String id, String path)
           
 File getResourceAsFile(String name)
           
 File getResourceAsFile(String name, String outputPath)
           
 InputStream getResourceAsInputStream(String name)
           
 File resolveLocation(String name)
          Provides compatibility with the Locator utility used by several Maven Plugins.
 File resolveLocation(String name, String outputPath)
          Provides compatibility with the Locator utility used by several Maven Plugins.
 void setOutputDirectory(File outputDirectory)
           
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultResourceManager

public DefaultResourceManager()
Method Detail

getResourceAsInputStream

public InputStream getResourceAsInputStream(String name)
                                     throws ResourceNotFoundException
Specified by:
getResourceAsInputStream in interface ResourceManager
Throws:
ResourceNotFoundException

getResourceAsFile

public File getResourceAsFile(String name)
                       throws ResourceNotFoundException,
                              FileResourceCreationException
Specified by:
getResourceAsFile in interface ResourceManager
Throws:
ResourceNotFoundException
FileResourceCreationException

getResourceAsFile

public File getResourceAsFile(String name,
                              String outputPath)
                       throws ResourceNotFoundException,
                              FileResourceCreationException
Specified by:
getResourceAsFile in interface ResourceManager
Throws:
ResourceNotFoundException
FileResourceCreationException

resolveLocation

public File resolveLocation(String name,
                            String outputPath)
                     throws IOException
Description copied from interface: ResourceManager
Provides compatibility with the Locator utility used by several Maven Plugins.

Specified by:
resolveLocation in interface ResourceManager
Throws:
IOException

resolveLocation

public File resolveLocation(String name)
                     throws IOException
Description copied from interface: ResourceManager
Provides compatibility with the Locator utility used by several Maven Plugins.

Specified by:
resolveLocation in interface ResourceManager
Throws:
IOException

setOutputDirectory

public void setOutputDirectory(File outputDirectory)
Specified by:
setOutputDirectory in interface ResourceManager

addSearchPath

public void addSearchPath(String id,
                          String path)
Specified by:
addSearchPath in interface ResourceManager


Copyright © 2001-2012 Codehaus. All Rights Reserved.