|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.orbeon.oxf.resources.PriorityResourceManagerImpl
The priority resource manager delegates to two or more resource managers the loading of documents. For example, if a flat file resource manager doesn't contain a document, a second classloader resource manager might load it. This is an important feature that allows an application developper to bundle a resource, and still allow the user to override it easily.
Constructor Summary | |
PriorityResourceManagerImpl(Map props)
|
Method Summary | |
boolean |
canWrite()
Indicates if the resource manager implementation suports write operations |
Node |
getContentAsDOM(String key)
Gets a W3C DOM node for the specified key. |
Document |
getContentAsDOM4J(String key)
Gets a DOM4J document for the specified key. |
void |
getContentAsSAX(String key,
ContentHandler handler)
Gets a document form the resource manager and send SAX events to the specified content handler. |
InputStream |
getContentAsStream(String key)
Returns a binary input stream for the specified 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. |
ContentHandler |
getWriteContentHandler(String key)
Returns a ContentHandler that can write to the Resource Manager |
Writer |
getWriter(String key)
Allow writing to the resource |
XMLReader |
getXMLReader()
Returns a XMLReader interface to the resource manager. |
long |
lastModified(String key)
Gets the last modified timestamp for the specofoed resource |
int |
length(String key)
Returns the length of the file denoted by this abstract pathname. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PriorityResourceManagerImpl(Map props)
Method Detail |
public Node getContentAsDOM(String key)
ResourceManager
getContentAsDOM
in interface ResourceManager
key
- A Resource Manager key
public Document getContentAsDOM4J(String key)
ResourceManager
getContentAsDOM4J
in interface ResourceManager
key
- A Resource Manager key
public void getContentAsSAX(String key, ContentHandler handler)
ResourceManager
getContentAsSAX
in interface ResourceManager
key
- A Resource Manager keyhandler
- a The content handler where SAX events are sentpublic InputStream getContentAsStream(String key)
getContentAsStream
in interface ResourceManager
key
- A Resource Manager key
public long lastModified(String key)
lastModified
in interface ResourceManager
key
- A Resource Manager key
public int length(String key)
length
in interface ResourceManager
public boolean canWrite()
canWrite
in interface ResourceManager
public OutputStream getOutputStream(String key)
getOutputStream
in interface ResourceManager
key
- A Resource Manager key
public Writer getWriter(String key)
getWriter
in interface ResourceManager
key
- A Resource Manager key
public String getRealPath(String key)
ResourceManager
getRealPath
in interface ResourceManager
public ContentHandler getWriteContentHandler(String key)
ResourceManager
getWriteContentHandler
in interface ResourceManager
key
- A Resource Manager key
public XMLReader getXMLReader()
ResourceManager
setContentHandler() and parse(String key)
- Specified by:
getXMLReader
in interface ResourceManager
- Returns:
- An XML reader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |