public class ContentHandlerProxy extends Emitter implements org.xml.sax.Locator
| Modifier and Type | Field and Description |
|---|---|
protected org.xml.sax.ContentHandler |
handler |
protected org.xml.sax.ext.LexicalHandler |
lexicalHandler |
protected org.xml.sax.Locator |
locator |
protected boolean |
requireWellFormed |
namePool, outputProperties, outputStream, systemId, writer| Constructor and Description |
|---|
ContentHandlerProxy() |
| Modifier and Type | Method and Description |
|---|---|
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(int nameCode)
End of element
|
int |
getColumnNumber() |
int |
getLineNumber() |
java.lang.String |
getPublicId() |
protected void |
notifyNotWellFormed()
The following function notifies the content handler, by means of a processing
instruction, that the output is not a well-formed document.
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Processing Instruction
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
Set Document Locator
|
void |
setEscaping(boolean escaping)
Switch escaping on or off.
|
void |
setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
Set the Lexical Handler to be used.
|
void |
setOutputProperties(java.util.Properties props)
Set the output properties
|
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 |
startDocument()
Start of document
|
void |
startElement(int nameCode,
org.xml.sax.Attributes atts,
int[] namespaces,
int nscount)
Start of element
|
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setNamePool, setOutputStream, setSystemId, setUnparsedEntity, setWriter, usesWriterprotected org.xml.sax.ContentHandler handler
protected org.xml.sax.ext.LexicalHandler lexicalHandler
protected org.xml.sax.Locator locator
protected boolean requireWellFormed
public void setUnderlyingContentHandler(org.xml.sax.ContentHandler handler)
public void setOutputProperties(java.util.Properties props)
setOutputProperties in class Emitterpublic void setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
public void setRequireWellFormed(boolean wellFormed)
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in class Emitterpublic void startDocument()
throws javax.xml.transform.TransformerException
startDocument in class Emitterjavax.xml.transform.TransformerExceptionpublic void endDocument()
throws javax.xml.transform.TransformerException
endDocument in class Emitterjavax.xml.transform.TransformerExceptionpublic void startElement(int nameCode,
org.xml.sax.Attributes atts,
int[] namespaces,
int nscount)
throws javax.xml.transform.TransformerException
startElement in class Emitternamespaces - Array of namespace codes identifying the namespace prefix/uri
pairs associated with this elementnscount - Number of significant entries within namespaces arrayjavax.xml.transform.TransformerExceptionpublic void endElement(int nameCode)
throws javax.xml.transform.TransformerException
endElement in class Emitterjavax.xml.transform.TransformerExceptionpublic void characters(char[] chars,
int start,
int len)
throws javax.xml.transform.TransformerException
characters in class Emitterjavax.xml.transform.TransformerExceptionprotected void notifyNotWellFormed()
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic void processingInstruction(java.lang.String target,
java.lang.String data)
throws javax.xml.transform.TransformerException
processingInstruction in class Emitterjavax.xml.transform.TransformerExceptionpublic void comment(char[] ch,
int start,
int length)
throws javax.xml.transform.TransformerException
public void setEscaping(boolean escaping)
setEscaping in class Emitterpublic java.lang.String getPublicId()
getPublicId in interface org.xml.sax.Locatorpublic int getLineNumber()
getLineNumber in interface org.xml.sax.Locatorpublic int getColumnNumber()
getColumnNumber in interface org.xml.sax.Locator