|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.orbeon.oxf.resources.ResourceManagerBase
org.orbeon.oxf.resources.FilesystemResourceManagerImpl
public class FilesystemResourceManagerImpl
The Filesystem resource manager is able to load resources from the filesystem with a direct mapping, or, if the property is specified, within a sandbox.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.orbeon.oxf.resources.ResourceManagerBase |
---|
org.orbeon.oxf.resources.ResourceManagerBase.ResourceManagerXMLReader |
Field Summary | |
---|---|
protected File |
rootDirectory
|
Constructor Summary | |
---|---|
FilesystemResourceManagerImpl(Map props)
|
Method Summary | |
---|---|
boolean |
canWrite(String key)
Indicates if the resource manager implementation suports write operations |
Reader |
getContentAsReader(String key)
Returns a character reader from the resource manager for the specified key. |
InputStream |
getContentAsStream(String key)
Returns a binary input stream for the specified key. |
protected File |
getFile(String key)
|
OutputStream |
getOutputStream(String key)
Allows writing to the resource |
String |
getRealPath(String key)
Returns the path to the given resource on the file system. |
Writer |
getWriter(String key)
Allow writing to the resource |
protected long |
lastModifiedImpl(String key,
boolean doNotThrowResourceNotFound)
Gets the last modified timestamp for the specified resource |
int |
length(String key)
Returns the length of the file denoted by this abstract pathname. |
Methods inherited from class org.orbeon.oxf.resources.ResourceManagerBase |
---|
exists, getContentAsDOM, getContentAsDOM4J, getContentAsSAX, getContentAsSAX, getWriteContentHandler, getXMLReader, getXMLReader, lastModified, writeDOM, writeDOM4J |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected File rootDirectory
Constructor Detail |
---|
public FilesystemResourceManagerImpl(Map props) throws OXFException
OXFException
Method Detail |
---|
public InputStream getContentAsStream(String key)
key
- A Resource Manager key
public Reader getContentAsReader(String key)
key
- A Resource Manager key
protected long lastModifiedImpl(String key, boolean doNotThrowResourceNotFound)
lastModifiedImpl
in class org.orbeon.oxf.resources.ResourceManagerBase
key
- A Resource Manager keydoNotThrowResourceNotFound
-
public int length(String key)
public boolean canWrite(String key)
key
- A Resource Manager key
public OutputStream getOutputStream(String key)
key
- A Resource Manager key
public Writer getWriter(String key)
key
- A Resource Manager key
protected File getFile(String key)
public String getRealPath(String key)
ResourceManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |