|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.merlotxml.util.xml.xerces.DOMLiaison
Xerces DOM Liaison Implementation
Nested Class Summary | |
class |
DOMLiaison.DefaultErrorHandler
Error handling class for the validating parser |
class |
DOMLiaison.MyEntityResolver
|
Field Summary | |
protected java.util.Vector |
_entityResolverList
|
Constructor Summary | |
DOMLiaison()
|
Method Summary | |
void |
addEntityResolver(org.xml.sax.EntityResolver er)
|
org.w3c.dom.Document |
createDocument()
Create a Document |
ValidDocument |
createValidDocument()
Creates a new document that should maintain validity. |
ValidDocument |
parseValidXMLStream(java.io.InputStream is,
java.lang.String fileLocation)
Parses an input stream containing XML using a validating parser. |
void |
parseValidXMLStream(ValidDocument doc,
org.xml.sax.InputSource inputSource,
org.xml.sax.ErrorHandler errorHandler,
org.xml.sax.EntityResolver entityResolver)
|
org.w3c.dom.Document |
parseXMLStream(java.io.InputStream is)
Deprecated. Use parseXMLStream(Reader) |
org.w3c.dom.Document |
parseXMLStream(java.io.Reader in)
|
void |
print(org.w3c.dom.Document doc,
java.io.Writer output,
java.lang.String resultns,
boolean format)
Print a Document |
void |
print(ValidDocument doc,
java.io.Writer output,
java.lang.String resultns,
boolean format)
Print that takes a valid document so it can print out the DTD specification properly. |
void |
setProperties(java.util.Properties props)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Vector _entityResolverList
Constructor Detail |
public DOMLiaison()
Method Detail |
public org.w3c.dom.Document createDocument()
createDocument
in interface DOMLiaison
public void print(ValidDocument doc, java.io.Writer output, java.lang.String resultns, boolean format) throws DOMLiaisonImplException
ValidDOMLiaison
print
in interface ValidDOMLiaison
DOMLiaisonImplException
public void print(org.w3c.dom.Document doc, java.io.Writer output, java.lang.String resultns, boolean format) throws DOMLiaisonImplException
print
in interface DOMLiaison
doc
- The Document to printoutput
- Writer to send the output toresultns
- Result name space for the output. Used for things
like HTML hacks.format
- If true, output will be nicely tab-formatted.
If false, there shouldn't be any line breaks or tabs between
elements in the output. Sometimes setting this to false
is necessary to get your HTML to work right.
DOMLiaisonImplException
- Wrapper exception that is thrown if the implementing class
throws any kind of exception.public org.w3c.dom.Document parseXMLStream(java.io.InputStream is) throws DOMLiaisonImplException
parseXMLStream
in interface DOMLiaison
DOMLiaisonImplException
- Wrapper exception that is thrown if the implementing class
throws any kind of exception.public org.w3c.dom.Document parseXMLStream(java.io.Reader in) throws DOMLiaisonImplException
parseXMLStream
in interface DOMLiaison
DOMLiaisonImplException
public void setProperties(java.util.Properties props)
setProperties
in interface DOMLiaison
public void addEntityResolver(org.xml.sax.EntityResolver er)
addEntityResolver
in interface DOMLiaison
public ValidDocument createValidDocument()
ValidDOMLiaison
createValidDocument
in interface ValidDOMLiaison
public ValidDocument parseValidXMLStream(java.io.InputStream is, java.lang.String fileLocation) throws DOMLiaisonImplException
parseValidXMLStream
in interface ValidDOMLiaison
is
- InputStream to parsefileLocation
- optional URL for the file used to find relative DTD's
DOMLiaisonImplException
- wrapper for exceptions thrown
by the validating parser.public void parseValidXMLStream(ValidDocument doc, org.xml.sax.InputSource inputSource, org.xml.sax.ErrorHandler errorHandler, org.xml.sax.EntityResolver entityResolver) throws DOMLiaisonImplException
DOMLiaisonImplException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |