|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.icl.saxon.output.ContentHandlerProxy
A ContentHandlerProxy is an Emitter that filters data before passing it to an underlying SAX2 ContentHandler. Note that in general the output passed to an Emitter corresponds to an External General Parsed Entity. A SAX2 ContentHandler only expects to deal with well-formed XML documents, so we only pass it the contents of the first element encountered.
Field Summary | |
protected org.xml.sax.helpers.AttributesImpl |
attributes
|
protected CharacterSet |
characterSet
|
protected org.xml.sax.ContentHandler |
handler
|
protected org.xml.sax.ext.LexicalHandler |
lexicalHandler
|
protected OutputDetails |
outputDetails
|
protected boolean |
requireWellFormed
|
protected java.io.Writer |
writer
|
Constructor Summary | |
ContentHandlerProxy()
|
Method Summary | |
void |
characters(char[] chars,
int start,
int len)
Character data |
void |
comment(char[] ch,
int start,
int length)
Output a comment. |
void |
endDocument()
End of document |
void |
endElement(Name name)
End of element |
void |
ignorableWhitespace(char[] chars,
int start,
int len)
Ignorable Whitespace |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Processing Instruction |
void |
setCharacterSet(CharacterSet charset)
Set the CharacterSet to be used. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Set Document Locator |
void |
setEscaping(boolean escaping)
Switch escaping on or off. |
void |
setIndenting(boolean indenting)
Set indenting on or off |
void |
setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
Set the Lexical Handler to be used. |
void |
setOutputDetails(OutputDetails details)
Set output details |
void |
setRequireWellFormed(boolean wellFormed)
Indicate whether the content handler can handle a stream of events that is merely well-balanced, or whether it can only handle a well-formed sequence. |
void |
setUnderlyingContentHandler(org.xml.sax.ContentHandler handler)
Set the underlying content handler. |
void |
setWriter(java.io.Writer writer)
Set the Writer to be used. |
void |
startDocument()
Start of document |
void |
startElement(Name name,
AttributeCollection atts)
Start of element |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Start a namespace prefix mapping. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.xml.sax.ContentHandler handler
protected org.xml.sax.ext.LexicalHandler lexicalHandler
protected java.io.Writer writer
protected CharacterSet characterSet
protected OutputDetails outputDetails
protected org.xml.sax.helpers.AttributesImpl attributes
protected boolean requireWellFormed
Constructor Detail |
public ContentHandlerProxy()
Method Detail |
public void setUnderlyingContentHandler(org.xml.sax.ContentHandler handler)
public void setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
public void setWriter(java.io.Writer writer) throws org.xml.sax.SAXException
setWriter
in interface Emitter
public void setCharacterSet(CharacterSet charset) throws org.xml.sax.SAXException
setCharacterSet
in interface Emitter
public void setRequireWellFormed(boolean wellFormed)
public void setDocumentLocator(org.xml.sax.Locator locator)
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface Emitter
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface Emitter
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface Emitter
public void startElement(Name name, AttributeCollection atts) throws org.xml.sax.SAXException
startElement
in interface Emitter
public void endElement(Name name) throws org.xml.sax.SAXException
endElement
in interface Emitter
public void characters(char[] chars, int start, int len) throws org.xml.sax.SAXException
characters
in interface Emitter
public void ignorableWhitespace(char[] chars, int start, int len) throws org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface Emitter
public void comment(char[] ch, int start, int length) throws org.xml.sax.SAXException
comment
in interface Emitter
public void setEscaping(boolean escaping) throws org.xml.sax.SAXException
setEscaping
in interface Emitter
public void setIndenting(boolean indenting)
public void setOutputDetails(OutputDetails details) throws org.xml.sax.SAXException
setOutputDetails
in interface Emitter
com.icl.saxon.output.Emitter
details
- The details of the required output
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |