|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.xml.sax.HandlerBase
|
+--oracle.xml.parser.v2.DefaultXMLDocumentHandler
|
+--oracle.xml.comp.CXMLHandlerBase
The SAX compression is implemented using SAX Handler which compresses the data based on SAX events. To use the SAX compression, the application needs to implement this interface and register with the SAX parser via Parser.setDocumentHandler()
| Constructor Summary | |
CXMLHandlerBase()Default Constructor | |
CXMLHandlerBase(java.io.ObjectOutput outstream)Constructs the CXMLHandlerBase using the ObjectOutput Stream | |
| Method Summary | |
void |
characters(char[] cbuf, int start, int len)Receive notification of character data inside an element |
void |
comment(char[] ch, int start, int length)Receive notification of comment The parser will invoke this method for each comment found. |
void |
comment(java.lang.String text)Receive notification of comment The parser will invoke this method for each comment found. |
void |
endCDATA()Receive notification of end of CDATA |
void |
endDoctype()Receive notification of end of the DTD. |
void |
endDocument()Receive notification of the end of the document. |
void |
endDTD()Receive notification of end of DTD declaration |
void |
endElement(NSName elem)Deprecated. this is replaced by endElement(namespace, localName, qname) |
void |
endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)Deprecated. this is replaced by endElement(namespace, localName, qname) |
void |
endEntity(java.lang.String name)Receive notification of end of entity |
void |
endPrefixMapping(java.lang.String prefix)Receive notification of the end of scope of prefix URI mapping |
XMLDocumentHandler |
getHandler()Get the next pipe-line node handler. |
java.lang.Object |
getProperty(java.lang.String name)Look up the value of a property. |
void |
ignorableWhitespace(char[] cbuf, int start, int len)Receive notification of ignorable whitespace in element content |
void |
processingInstruction(java.lang.String target, java.lang.String data)Receive notification of a processing instruction |
void |
setDoctype(DTD dtd)Receive notification of a DTD (Document Type node). |
void |
setDocumentLocator(Locator locator)Receive the Locator object for the document event. |
void |
setError(XMLError he)Receive notification of a XMLError handler. |
void |
setHandler(XMLDocumentHandler h)Receive notification of a next pipe-line node handler. |
void |
setProperty(java.lang.String name, java.lang.Object value)Set the value of a property. |
void |
setTextDecl(java.lang.String version, java.lang.String encoding)Receive notification of a Text XML Declaration. |
void |
setXMLSchema(java.lang.Object s)Receive notification of a XMLSchema object. |
void |
startCDATA()Receive notification of start of CDATA |
void |
startDocument()Receive notification of the begining of the document. |
void |
startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId)Receive notification of start of DTD declaratoin |
void |
startElement(NSName elem, SAXAttrList attributes)Recieve notification of the begining of an element. |
void |
startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, Attributes attributes)Recieve notification of the begining of an element. |
void |
startEntity(java.lang.String name)Receive notification of begininning of some internal or external XML entities |
void |
startPrefixMapping(java.lang.String prefix, java.lang.String uri)Receive notification of the begin the scope of prefix URI mapping. |
| Methods inherited from class oracle.xml.parser.v2.DefaultXMLDocumentHandler |
cDATASection, setXMLDecl, skippedEntity |
| Methods inherited from class org.xml.sax.HandlerBase |
endElement, error, fatalError, notationDecl, resolveEntity, startElement, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.ContentHandler |
skippedEntity |
| Methods inherited from interface org.xml.sax.DocumentHandler |
endElement, startElement |
| Constructor Detail |
public CXMLHandlerBase(java.io.ObjectOutput outstream)
throws java.io.IOException
ObjectOutput Streampublic CXMLHandlerBase()
| Method Detail |
public java.lang.Object getProperty(java.lang.String name)
name - The property name, which is a fully-qualified URI.setProperty(java.lang.String, java.lang.Object)
public void setProperty(java.lang.String name,
java.lang.Object value)
name - The property name, which is a fully-qualified URI.value - The requested value for the property.public void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class HandlerBaselocator - The locator for the SAX document events.ContentHandler.setDocumentLocator(org.xml.sax.Locator)
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class HandlerBaseSAXException - Any SAX exception, possibly wrapping another exception.ContentHandler.endDocument()
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class HandlerBaseSAXExceptionContentHandler.startDocument()
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class DefaultXMLDocumentHandlerprefix - The Namespace prefix being declareduri - The Namespace URI the prefix is mapped toSAXExceptionContentHandler.endPrefixMapping(java.lang.String), ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void endPrefixMapping(java.lang.String prefix)
throws SAXException
endPrefixMapping in interface ContentHandlerendPrefixMapping in class DefaultXMLDocumentHandlerprefix - The prefix that was being mappedSAXExceptionContentHandler.startPrefixMapping(java.lang.String, java.lang.String), ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
Attributes attributes)
throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultXMLDocumentHandlernamespaceURI - The Namespace URI, or empty string if the element has NamespaceUrilocalName - The local name (without prefix)qName - The qualified name (with prefix)attributes - The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.SAXExceptionContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String), Attributes
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
endElement in interface ContentHandlerendElement in class DefaultXMLDocumentHandlernamespaceURI - The namespace URI or empty string if there is no namespace UIRlocalName - The local name (without prefix)qName - The qualified XML 1.0 name (with prefix)SAXException
public void characters(char[] cbuf,
int start,
int len)
throws SAXException
characters in interface ContentHandlercharacters in class HandlerBasecbuf - charactersstart - The starting position in the character arraylen - The number of characters to read from the array.SAXExceptionContentHandler.ignorableWhitespace(char[], int, int), Locator
public void ignorableWhitespace(char[] cbuf,
int start,
int len)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class HandlerBasestart - The start position in the array.cbuf - The characters from the XML document.len - The number of characters to read from the array.SAXExceptionContentHandler.characters(char[], int, int)
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in class HandlerBasetarget - The processing instruction targetdata - The processing instruction dataSAXException
public void startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
throws SAXException
startDTD in interface LexicalHandlername - The document type namepublicId - The declared public identifier for the external DTD subset, or null if none was declaredsystemId - The declared system identifier for the externa DTD subset, or null if none was declaredSAXExceptionLexicalHandler.endDTD(), LexicalHandler.startEntity(java.lang.String)
public void endDTD()
throws SAXException
endDTD in interface LexicalHandlerSAXExceptionLexicalHandler.startDTD(java.lang.String, java.lang.String, java.lang.String)
public void startEntity(java.lang.String name)
throws SAXException
startEntity in interface LexicalHandlername - The name of the entity. If it is a parameter entity, the name will begin with '%', and if it is an external DTD subset it will be "[dtd]"SAXExceptionLexicalHandler.endEntity(java.lang.String), DeclHandler.internalEntityDecl(java.lang.String, java.lang.String), DeclHandler.externalEntityDecl(java.lang.String, java.lang.String, java.lang.String)
public void endEntity(java.lang.String name)
throws SAXException
endEntity in interface LexicalHandlername - The name of the entitySAXExceptionLexicalHandler.startEntity(java.lang.String)
public void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerSAXExceptionLexicalHandler.endCDATA()
public void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerSAXExceptionLexicalHandler.startCDATA()
public void comment(char[] ch,
int start,
int length)
throws SAXException
The parser will invoke this method for each comment found.
comment in interface LexicalHandlerch - The comment character datastart - The starting location of the commentlength - The length of the comment character dataSAXException - Any SAX exception possibly wrapping another exception
public void startElement(NSName elem,
SAXAttrList attributes)
throws SAXException
startElement in interface XMLDocumentHandlerstartElement in class DefaultXMLDocumentHandlerelem - The NSName of the elementattributes - The attributes attached to the element. If there are no attributes, then it is an empty Attribute objectSAXExceptionDocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList)
public void endElement(NSName elem)
throws SAXException
endElement in interface XMLDocumentHandlerendElement in class DefaultXMLDocumentHandlerelem - The NSName of the element.SAXExceptionDocumentHandler.endElement(java.lang.String)
public void setTextDecl(java.lang.String version,
java.lang.String encoding)
throws SAXException
The Parser will invoke this method once for each text XML Decl
setTextDecl in interface XMLDocumentHandlersetTextDecl in class DefaultXMLDocumentHandlerversion - The version number (or null, if not specified)encoding - The encoding nameSAXException - Any SAX exception, possibly wrapping another exception.
public void comment(java.lang.String text)
throws SAXException
The parser will invoke this method for each comment found.
comment in interface XMLDocumentHandlercomment in class DefaultXMLDocumentHandlertext - The comment data, or null if none was supplied.SAXException - Any SAX exception possibly wrapping another exception
public void setHandler(XMLDocumentHandler h)
throws SAXException
setHandler in interface XMLDocumentHandlersetHandler in class DefaultXMLDocumentHandlerh - The XMLDocumentHandler nodeSAXException - Any SAX exception, possibly wrapping another exception.public XMLDocumentHandler getHandler()
getHandler in interface XMLDocumentHandlergetHandler in class DefaultXMLDocumentHandler
public void setError(XMLError he)
throws SAXException
setError in interface XMLDocumentHandlersetError in class DefaultXMLDocumentHandlerhe - The XMLError objectSAXException - Any SAX exception, possibly wrapping another exception.
public void setXMLSchema(java.lang.Object s)
throws SAXException
setXMLSchema in interface XMLDocumentHandlersetXMLSchema in class DefaultXMLDocumentHandlers - The XMLSchema objectSAXException - Any SAX exception, possibly wrapping another exception.
public void setDoctype(DTD dtd)
throws SAXException
The Parser will invoke this method after calling startDocument to register the DTD used.
setDoctype in interface XMLDocumentHandlersetDoctype in class DefaultXMLDocumentHandlerSAXException - Any SAX exception, possibly wrapping another exception.
public void endDoctype()
throws SAXException
endDoctype in interface XMLDocumentHandlerendDoctype in class DefaultXMLDocumentHandlerSAXException - Any SAX exception, possibly wrapping another exception.
|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||