public class FileSystemResource extends Object implements org.avaje.classpath.scanner.Resource, Comparable<FileSystemResource>
| Constructor and Description |
|---|
FileSystemResource(String location)
Creates a new ClassPathResource.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(FileSystemResource o) |
String |
getFilename() |
String |
getLocation() |
String |
getLocationOnDisk()
Retrieves the location of this resource on disk.
|
byte[] |
loadAsBytes()
Loads this resource as a byte array.
|
String |
loadAsString(String encoding)
Loads this resource as a string.
|
String |
toString() |
public FileSystemResource(String location)
location - The location of the resource on the filesystem.public String getLocation()
getLocation in interface org.avaje.classpath.scanner.Resourcepublic String getLocationOnDisk()
getLocationOnDisk in interface org.avaje.classpath.scanner.Resourcepublic String loadAsString(String encoding)
loadAsString in interface org.avaje.classpath.scanner.Resourceencoding - The encoding to use.public byte[] loadAsBytes()
loadAsBytes in interface org.avaje.classpath.scanner.Resourcepublic String getFilename()
getFilename in interface org.avaje.classpath.scanner.Resourcepublic int compareTo(FileSystemResource o)
compareTo in interface Comparable<FileSystemResource>Copyright © 2017. All rights reserved.