public class DefaultFileReader extends Object implements FileReader
IOUtils| Constructor and Description |
|---|
DefaultFileReader() |
| Modifier and Type | Method and Description |
|---|---|
static URL |
getResource(String resourceName,
Class<?> callingClass) |
static InputStream |
getResourceAsStream(String resourceName,
Class<?> callingClass) |
String |
getResourceAsString(String resourceName)
Attempts to load a resource from the file system, from a URL, or from the classpath, in that order.
|
static File |
newFile(String pathName) |
public String getResourceAsString(String resourceName) throws IOException
FileReadergetResourceAsString in interface FileReaderresourceName - The name of the resource to loadIOException - in case of an IO errorpublic static InputStream getResourceAsStream(String resourceName, Class<?> callingClass) throws IOException
IOExceptionCopyright © 2026. All rights reserved.