net.axyana.qizxopen.dm
Class DocumentWriter
java.lang.Object
org.xml.sax.helpers.DefaultHandler
net.axyana.qizxopen.dm.DocumentWriter
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.ext.LexicalHandler
- Direct Known Subclasses:
- IDocument, SAXEncoder
- public abstract class DocumentWriter
- extends org.xml.sax.helpers.DefaultHandler
- implements org.xml.sax.ext.LexicalHandler
SAX2 extension for the creation of parsed Documents.
It is in fact an adapter to "XML events", the SAX-like interface
defined by XMLEventReceiver.
The EntityResolver interface should be provided separately,
though a default support is provided by DefaultHandler.
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startElement, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.ext.LexicalHandler |
comment, endCDATA, endEntity, startCDATA, startEntity |
DocumentWriter
public DocumentWriter()
close
public void close()
throws java.io.IOException,
org.xml.sax.SAXException
- Terminates creation of a document (required).
- Throws:
java.io.IOException
org.xml.sax.SAXException
getBaseURI
public java.lang.String getBaseURI()
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
- Specified by:
setDocumentLocator
in interface org.xml.sax.ContentHandler
startDocument
public void startDocument()
throws org.xml.sax.SAXException
- Specified by:
startDocument
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
startDTD
public void startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
- Specified by:
startDTD
in interface org.xml.sax.ext.LexicalHandler
- Throws:
org.xml.sax.SAXException
endDTD
public void endDTD()
throws org.xml.sax.SAXException
- Specified by:
endDTD
in interface org.xml.sax.ext.LexicalHandler
- Throws:
org.xml.sax.SAXException
characters
public abstract void characters(java.lang.String chars)
atom
public void atom(java.lang.Object value)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
getDocumentId
public int getDocumentId()
- Returns an identifier associated with the document. by default 0.
setDocumentId
public void setDocumentId(int value)
getDtdName
public java.lang.String getDtdName()
getDtdPublicId
public java.lang.String getDtdPublicId()
getDtdSystemid
public java.lang.String getDtdSystemid()