|
Oracle® Application Server XML Java API Reference 10g Release 3 (10.1.3) B28238-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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 |
setPSVI(boolean val) Set flag to store PSVI information |
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 |
setXSDValidator(XSDValidator sv) Set the XSDValidator used to retrieve PSVI info |
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 setXSDValidator(XSDValidator sv)
sv
- validatorpublic void setPSVI(boolean val)
val
-public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class HandlerBase
locator
- The locator for the SAX document events.ContentHandler.setDocumentLocator(org.xml.sax.Locator)
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class HandlerBase
SAXException
- Any SAX exception, possibly wrapping another exception.DocumentHandler.startDocument()
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class HandlerBase
SAXException
DocumentHandler.endDocument()
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
startPrefixMapping
in class DefaultXMLDocumentHandler
prefix
- The Namespace prefix being declareduri
- The Namespace URI the prefix is mapped toSAXException
DefaultXMLDocumentHandler.endPrefixMapping(java.lang.String)
, DefaultXMLDocumentHandler.startElement(oracle.xml.parser.v2.NSName, oracle.xml.parser.v2.SAXAttrList)
public void endPrefixMapping(java.lang.String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
endPrefixMapping
in class DefaultXMLDocumentHandler
prefix
- The prefix that was being mappedSAXException
DefaultXMLDocumentHandler.startPrefixMapping(java.lang.String, java.lang.String)
, DefaultXMLDocumentHandler.endElement(oracle.xml.parser.v2.NSName)
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultXMLDocumentHandler
namespaceURI
- 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.SAXException
DefaultXMLDocumentHandler.endElement(oracle.xml.parser.v2.NSName)
, Attributes
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
endElement
in interface ContentHandler
endElement
in class DefaultXMLDocumentHandler
namespaceURI
- 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 ContentHandler
characters
in class HandlerBase
cbuf
- charactersstart
- The starting position in the character arraylen
- The number of characters to use from the character array.SAXException
DocumentHandler.characters(char[], int, int)
public void ignorableWhitespace(char[] cbuf, int start, int len) throws SAXException
ignorableWhitespace
in interface ContentHandler
ignorableWhitespace
in class HandlerBase
start
- The start position in the array.cbuf
- The whitespace characters.len
- The number of characters to use from the character array.SAXException
DocumentHandler.ignorableWhitespace(char[], int, int)
public void processingInstruction(java.lang.String target, java.lang.String data) throws SAXException
processingInstruction
in interface ContentHandler
processingInstruction
in class HandlerBase
target
- The processing instruction targetdata
- The processing instruction dataSAXException
DocumentHandler.processingInstruction(java.lang.String, java.lang.String)
public void startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId) throws SAXException
startDTD
in interface LexicalHandler
name
- 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 declaredSAXException
LexicalHandler.endDTD()
, LexicalHandler.startEntity(java.lang.String)
public void endDTD() throws SAXException
endDTD
in interface LexicalHandler
SAXException
LexicalHandler.startDTD(java.lang.String, java.lang.String, java.lang.String)
public void startEntity(java.lang.String name) throws SAXException
startEntity
in interface LexicalHandler
name
- 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]"SAXException
LexicalHandler.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 LexicalHandler
name
- The name of the entitySAXException
LexicalHandler.startEntity(java.lang.String)
public void startCDATA() throws SAXException
startCDATA
in interface LexicalHandler
SAXException
LexicalHandler.endCDATA()
public void endCDATA() throws SAXException
endCDATA
in interface LexicalHandler
SAXException
LexicalHandler.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 LexicalHandler
ch
- The comment character datastart
- The starting location of the commentlength
- The length of the comment character dataSAXException
- Any SAX exception possibly wrapping another exceptionpublic void startElement(NSName elem, SAXAttrList attributes) throws SAXException
startElement
in interface XMLDocumentHandler
startElement
in class DefaultXMLDocumentHandler
elem
- The NSName of the elementattributes
- The attributes attached to the element. If there are no attributes, then it is an empty Attribute objectSAXException
DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList)
public void endElement(NSName elem) throws SAXException
endElement
in interface XMLDocumentHandler
endElement
in class DefaultXMLDocumentHandler
elem
- The NSName of the element.SAXException
DocumentHandler.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 XMLDocumentHandler
setTextDecl
in class DefaultXMLDocumentHandler
version
- 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 XMLDocumentHandler
comment
in class DefaultXMLDocumentHandler
text
- The comment data, or null if none was supplied.SAXException
- Any SAX exception possibly wrapping another exceptionpublic void setHandler(XMLDocumentHandler h) throws SAXException
setHandler
in interface XMLDocumentHandler
setHandler
in class DefaultXMLDocumentHandler
h
- The XMLDocumentHandler nodeSAXException
- Any SAX exception, possibly wrapping another exception.public XMLDocumentHandler getHandler()
getHandler
in interface XMLDocumentHandler
getHandler
in class DefaultXMLDocumentHandler
public void setError(XMLError he) throws SAXException
setError
in interface XMLDocumentHandler
setError
in class DefaultXMLDocumentHandler
he
- The XMLError objectSAXException
- Any SAX exception, possibly wrapping another exception.public void setXMLSchema(java.lang.Object s) throws SAXException
setXMLSchema
in interface XMLDocumentHandler
setXMLSchema
in class DefaultXMLDocumentHandler
s
- 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 XMLDocumentHandler
setDoctype
in class DefaultXMLDocumentHandler
SAXException
- Any SAX exception, possibly wrapping another exception.public void endDoctype() throws SAXException
endDoctype
in interface XMLDocumentHandler
endDoctype
in class DefaultXMLDocumentHandler
SAXException
- Any SAX exception, possibly wrapping another exception.
|
Oracle® Application Server XML Java API Reference 10g Release 3 (10.1.3) B28238-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |