public interface ResourceSource
Typically a File System Directory based source or a ServletContext URL resource based source (for Servlet WAR files).
| Modifier and Type | Method and Description |
|---|---|
ResourceContent |
getContent(String entry)
Find the content with a given entry name.
|
String |
getRealPath()
Return the File System path of the root of the ResourceSource.
|
byte[] |
readBytes(ResourceContent content,
int bufSize)
Return the content as a byte[].
|
String |
readString(ResourceContent content,
int bufSize)
Return the content as a String.
|
String getRealPath()
This will return null IF the ResourceSource is an unpacked WAR file.
ResourceContent getContent(String entry)
String readString(ResourceContent content, int bufSize) throws IOException
IOExceptionbyte[] readBytes(ResourceContent content, int bufSize) throws IOException
IOExceptionCopyright © 2014. All Rights Reserved.