public class FileResourceSource extends AbstractResourceSource implements ResourceSource
| Constructor and Description |
|---|
FileResourceSource(File dir)
Create the source based on a directory file.
|
FileResourceSource(String directory)
Create the source based on a directory name.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceContent |
getContent(String entry)
Search for the given file and return as IoContent.
|
String |
getRealPath()
Return the File System path of the root of the ResourceSource.
|
readBytes, readStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadBytes, readStringpublic FileResourceSource(String directory)
public FileResourceSource(File dir)
public String getRealPath()
ResourceSourceThis will return null IF the ResourceSource is an unpacked WAR file.
getRealPath in interface ResourceSourcepublic ResourceContent getContent(String entry)
getContent in interface ResourceSourceCopyright © 2014. All Rights Reserved.