|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.HandlerBase | +--oracle.xml.parser.v2.DefaultXMLDocumentHandler | +--oracle.xml.comp.CXMLHandlerBase
This interface extends the org.xml.sax.ContentHandler
interface. SAX Applications requiring binary compression support
need to implement this interface and register with the SAX Parser
via Parser.setDocumentHandler()
.
Fields inherited from interface oracle.xml.comp.CXMLConstants |
ATTR_DEF,
ATTR_TOKEN,
ATTRDECL_DEF,
CDATA_DEF,
CHAR_DEF,
COMMENT_DEF,
CXML_VERSION,
cXMLFILE,
cXMLFILE_LEN,
DEBUG,
DTD_DEF,
ELEMENTDECL_DEF,
END,
ENTITY_DEF,
ENTITYREF_DEF,
META_ID_MAX,
names,
NOTATION_DEF,
NS_DEF,
NULLSTR,
PI_DEF,
PREFIX_DEF,
TAG_DEF,
TAG_TOKEN,
TOKEN_ONLY,
XMLDECL_DEF |
Constructor Summary |
CXMLHandlerBase()
|
CXMLHandlerBase(java.io.ObjectOutput outstream)
Constructs the default CXMLHandlerBase. |
CXMLHandlerBase(oracle.xml.io.XMLObjectOutput out)
Constructs the default CXMLHandlerBase. |
Method Summary |
Type | Method |
---|---|
void |
cDATASection(char[] cbuf,
int start,
int len)
Receive notification of a CDATA Section. |
void |
characters(char[] cbuf,
int start,
int len)
Receive notification of character data inside an element |
void |
comment(java.lang.String text)
Receive notification of a comment. |
void |
endDoctype()
Receive notification of end of the DTD. |
void |
endDocument()
Receive notification of the end of the document. |
void |
endElement(NSName elem)
Receive notification of the end of the element. |
void |
endPrefixMapping(java.lang.String prefix)
Receive notification of the end of scope of prefix URI mapping |
oracle.xml.comp.CXMLContext |
getCXMLContext()
Return the CXML Context used for compression |
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 |
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 |
setXMLDecl(java.lang.String version,
java.lang.String standalone,
java.lang.String encoding)
Receive notification of a XML Declaration |
void |
setXMLSchema(java.lang.Object s)
Receive notification of a XMLSchema object. |
void |
skippedEntity(java.lang.String name)
Receive notification of a skipped entity. |
void |
startDocument()
Receive notification of the begining of the document. |
void |
startElement(NSName elem,
SAXAttrList attributes)
Recieve notification of the begining of an element. |
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 |
endElement,
getHandler,
setHandler,
startElement |
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 |
Constructor Detail |
public CXMLHandlerBase(java.io.ObjectOutput outstream) throws java.io.IOException
arg
- The name of the input XML filepublic CXMLHandlerBase(oracle.xml.io.XMLObjectOutput out)
arg
- The name of the input XML filepublic 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 oracle.xml.comp.CXMLContext getCXMLContext()
public void setDocumentLocator(Locator locator)
locator
- The locator for the SAX document events.ContentHandler.setDocumentLocator(org.xml.sax.Locator)
public void setXMLDecl(java.lang.String version, java.lang.String standalone, java.lang.String encoding) throws SAXException
The Parser will invoke this method once for XML Decl
version
- The version numberstandalone
- The standalone value (or null, if not specifed)encoding
- The encoding name (or null, if not specifed)public void startDocument() throws SAXException
none
- public void endDocument() throws SAXException
none
- public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws SAXException
prefix
- The Namespace prefix being declareduri
- The Namespace URI the prefix is mapped topublic void endPrefixMapping(java.lang.String prefix) throws SAXException
prefix
- The prefix that was being mappedpublic void skippedEntity(java.lang.String name) throws SAXException
The Parser will invoke this method once for each entity
skipped. Non-validating processors may skip entities if they
have not seen the declarations (because, for example, the
entity was declared in an external DTD subset). All processors
may skip external entities, depending on the values of the
http://xml.org/sax/features/external-general-entities
and the
http://xml.org/sax/features/external-parameter-entities
properties.
name
- The name of the skipped entity. If it is a
parameter entity, the name will begin with '%', and if
it is the external DTD subset, it will be the string
"[dtd]".public void startElement(NSName elem, SAXAttrList attributes) throws SAXException
namespaceURI
- The Namespace URI, or empty string if the element
has NamespaceUrilocalName
- The local name (without prefix)qName
- The qualified name (with prefix)atts
- The attributes attached to the element. If there are
no attributes, then it is an empty Attribute objectpublic void endElement(NSName elem) throws SAXException
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)public void characters(char[] cbuf, int start, int len) throws SAXException
cbuf
- charactersstart
- The starting position in the character arraylength
- The number of characters to us from the character arraypublic void ignorableWhitespace(char[] cbuf, int start, int len) throws SAXException
ch
- The Character from XML docuemntstart
- The start position in the array.length
- The number of characters to read from the arraypublic void processingInstruction(java.lang.String target, java.lang.String data) throws SAXException
target
- The processing instruction targetdata
- The processing instruction datapublic void setDoctype(DTD dtd) throws SAXException
The Parser will invoke this method after calling startDocument to register the DTD used.
DTD
- The DTD nodepublic void endDoctype() throws SAXException
public void cDATASection(char[] cbuf, int start, int len) throws SAXException
The Parser will invoke this method once for each CDATA Section found.
ch
- The CDATA section characters.start
- The start position in the character array.length
- The number of characters to use from the
character array.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
version
- The version number (or null, if not specified)encoding
- The encoding namepublic void comment(java.lang.String text) throws SAXException
The Parser will invoke this method once for each comment found: note that comment may occur before or after the main document element.
data
- The comment data, or null if
none was supplied.public void setError(XMLError he) throws SAXException
he
- The XMLError objectpublic void setXMLSchema(java.lang.Object s) throws SAXException
s
- The XMLSchema object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |