|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ocd.docservice.XMLDocumentService
Fields inherited from interface org.ocd.docservice.IXMLDocumentService |
PATH_SEPERATOR, PROTOCOL |
Method Summary | |
static IXMLDocumentService |
getDefaultService()
Get the Default Document Service |
org.w3c.dom.Document |
getDocument(java.lang.String pPath)
Get a Document from the Specified Path |
java.net.URLStreamHandler |
getHandler()
Get the URLStreamHandler for the DocSerice |
java.io.InputStream |
getInputStream(java.lang.String pPath)
Gets an InputStream to a document |
java.lang.String[] |
listDocuments(java.lang.String pPath)
List Documents in an Path |
java.lang.String[] |
listSubDirectories(java.lang.String pPath)
List Sub Directories in a Path |
void |
removeDocument(java.lang.String pPath)
Removes a Document |
void |
storeDocument(java.lang.String pPath,
org.w3c.dom.Document pDocument)
Stores a Document |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static IXMLDocumentService getDefaultService()
public java.lang.String[] listDocuments(java.lang.String pPath) throws java.io.IOException
listDocuments
in interface IXMLDocumentService
pPath
- parent path you want to retrieve document names frompublic java.lang.String[] listSubDirectories(java.lang.String pPath) throws java.io.IOException
listSubDirectories
in interface IXMLDocumentService
pPath
- parent path you want to retrieve sub dirs names frompublic void removeDocument(java.lang.String pPath) throws java.io.IOException
removeDocument
in interface IXMLDocumentService
pPath
- file name of document you want to storepublic org.w3c.dom.Document getDocument(java.lang.String pPath) throws XMLDocumentNotFound, java.io.IOException
getDocument
in interface IXMLDocumentService
org.ocd.docservice.IXMLDocumentService
pPath
- file name of document you want to getpublic void storeDocument(java.lang.String pPath, org.w3c.dom.Document pDocument) throws java.io.IOException
IXMLDocumentService
storeDocument
in interface IXMLDocumentService
org.ocd.docservice.IXMLDocumentService
pPath
- file name of document you want to storepDocument
- DOM Document object for the Documentpublic java.io.InputStream getInputStream(java.lang.String pPath) throws java.io.IOException
getInputStream
in interface IXMLDocumentService
pPath
- file name of document you want an inputstream topublic java.net.URLStreamHandler getHandler()
getHandler
in interface IXMLDocumentService
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |