org.wamblee.io
Class ClassPathResource
java.lang.Object
org.wamblee.io.ClassPathResource
- All Implemented Interfaces:
- InputResource
public class ClassPathResource
- extends Object
- implements InputResource
Represents an input resource in the classpath.
ClassPathResource
public ClassPathResource(String aResource)
- Construct the class path resource.
- Parameters:
aResource - Resource
getInputStream
public InputStream getInputStream()
throws IOException
- Description copied from interface:
InputResource
- Gets the input stream to the resource. The obtained input stream must be
closed once reading has finished.
- Specified by:
getInputStream in interface InputResource
- Returns:
- Input stream to the resource, never null.
- Throws:
IOException - in case the resource cannot be found.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011. All Rights Reserved.