|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.xml.XMLParser
org.stanwood.media.store.xmlstore.BaseXMLStore
public abstract class BaseXMLStore
This is the base class for the XML Store classes. It has the methods which are common between the different store classes.
Field Summary |
---|
Fields inherited from class org.stanwood.media.xml.XMLParser |
---|
DTD_WEB_LOCATION, SCHEMA_WEB_LOCATION |
Constructor Summary | |
---|---|
BaseXMLStore()
|
Method Summary | |
---|---|
protected java.io.File |
getCacheFile(java.io.File cacheDirectory,
java.lang.String filename)
Used to get a file object which points to a cache file. |
protected java.lang.String |
urlToText(java.net.URL url)
Used to convert a URL into text. |
protected void |
writeCache(java.io.File file,
org.w3c.dom.Document doc)
Used to write the case document to a file |
Methods inherited from class org.stanwood.media.xml.XMLParser |
---|
createDocBuilder, createFactory, deleteNode, domToStr, encodeAttributeValue, firstChild, getAttribute, getElement, getFirstChildElement, getFloatFromXML, getIntegerFromXML, getLastChildElement, getLongFromXML, getSchema, getStringFromXML, getStringFromXMLOrNull, getURLFromXML, getURLFromXMLOrNull, hasNode, parse, parse, parse, quoteXPathQuery, selectChildNodes, selectNodeList, selectSingleNode, strToDom, strToDom, strToDom, writeXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseXMLStore()
Method Detail |
---|
protected void writeCache(java.io.File file, org.w3c.dom.Document doc) throws StoreException
file
- The file to write it todoc
- The contents to write
StoreException
- Thrown if their is a problem writing the cacheprotected java.io.File getCacheFile(java.io.File cacheDirectory, java.lang.String filename)
cacheDirectory
- The directory the cache is located infilename
- The filename of the cache
protected java.lang.String urlToText(java.net.URL url)
url
- The URL to convert to text.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |