public class ClassPathResource extends Object implements InputResource
| Constructor and Description | 
|---|
| ClassPathResource(String aResource)Construct the class path resource. | 
| Modifier and Type | Method and Description | 
|---|---|
| InputStream | getInputStream()Gets the input stream to the resource. | 
| String | toString() | 
public ClassPathResource(String aResource)
aResource - Resourcepublic InputStream getInputStream() throws IOException
InputResourcegetInputStream in interface InputResourceIOException - in case the resource cannot be found.Copyright © 2025. All rights reserved.