Class FileResourceLoader
- java.lang.Object
-
- org.codehaus.plexus.resource.loader.AbstractResourceLoader
-
- org.codehaus.plexus.resource.loader.FileResourceLoader
-
- All Implemented Interfaces:
ResourceLoader
@Named("file") public class FileResourceLoader extends AbstractResourceLoader
- Version:
- $Id$
- Author:
- Trygve Laugstøl, Jason van Zyl
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ID
-
Fields inherited from class org.codehaus.plexus.resource.loader.AbstractResourceLoader
paths
-
-
Constructor Summary
Constructors Constructor Description FileResourceLoader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PlexusResource
getResource(java.lang.String name)
Returns the resource with the given name.static java.io.File
getResourceAsFile(java.lang.String name, java.lang.String outputPath, java.io.File outputDirectory)
Deprecated.-
Methods inherited from class org.codehaus.plexus.resource.loader.AbstractResourceLoader
addSearchPath, getResourceAsInputStream
-
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getResource
public PlexusResource getResource(java.lang.String name) throws ResourceNotFoundException
Description copied from interface:ResourceLoader
Returns the resource with the given name.- Parameters:
name
- The resources name.- Returns:
- The resource with the given name.
- Throws:
ResourceNotFoundException
- The resource wasn't found, or wasn't available.
-
getResourceAsFile
@Deprecated public static java.io.File getResourceAsFile(java.lang.String name, java.lang.String outputPath, java.io.File outputDirectory) throws FileResourceCreationException
Deprecated.- Throws:
FileResourceCreationException
-
-