|
Qizx/Open v0.4p2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.xfra.qizxopen.dm.DocumentParser
|
+--net.xfra.qizxopen.dm.DocumentManager
Provides access to the data-model of XML documents.
Resolves the URI of a document and parses it or opens it according to its representation.
Parsed documents are managed in a cache with configurable size
(see setCacheSize(long)).
Supports XML catalogs through
Norman Walsh's com.sun.resolver.tools.CatalogResolver.
| Constructor Summary | |
DocumentManager(java.lang.String baseURI)
Creation with a single base location. |
|
DocumentManager(java.net.URL baseURL)
Creation with a single base location. |
|
| Method Summary | |
FONIDocument |
findDocument(java.lang.String uri)
Cached access by URI. |
Node |
findDocumentNode(java.lang.String uri)
Cached access by URI. |
java.lang.String |
getBaseURI()
Returns the current baseURI. |
void |
setCacheSize(long size)
Defines the maximal memory size of the document cache. |
| Methods inherited from class net.xfra.qizxopen.dm.DocumentParser |
newParser, parse, parseDocument, parseDocument, parseDocument, parseDocument |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DocumentManager(java.net.URL baseURL)
baseURL - the base URL used for resolving a relative document URI.
For parsed documents, any Java-supported URL is suitable.
public DocumentManager(java.lang.String baseURI)
throws java.io.IOException
| Method Detail |
public java.lang.String getBaseURI()
public void setCacheSize(long size)
size - in bytes (hint).
public Node findDocumentNode(java.lang.String uri)
throws DataModelException
DataModelException
public FONIDocument findDocument(java.lang.String uri)
throws DataModelException
DataModelException
|
Copyright Xavier FRANC 2003-2004 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||