public class ContentHandlerProxy extends Emitter implements Locator
| Modifier and Type | Field and Description |
|---|---|
protected ContentHandler |
handler |
protected LexicalHandler |
lexicalHandler |
protected Locator |
locator |
protected boolean |
requireWellFormed |
namePool, outputProperties, outputStream, systemId, writerPI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING| 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() |
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(String target,
String data)
Processing Instruction
|
void |
setDocumentLocator(Locator locator)
Set Document Locator
|
void |
setEscaping(boolean escaping)
Switch escaping on or off.
|
void |
setLexicalHandler(LexicalHandler handler)
Set the Lexical Handler to be used.
|
void |
setOutputProperties(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(ContentHandler handler)
Set the underlying content handler.
|
void |
startDocument()
Start of document
|
void |
startElement(int nameCode,
Attributes atts,
int[] namespaces,
int nscount)
Start of element
|
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setNamePool, setOutputStream, setSystemId, setUnparsedEntity, setWriter, usesWriterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSystemIdprotected ContentHandler handler
protected LexicalHandler lexicalHandler
protected Locator locator
protected boolean requireWellFormed
public void setUnderlyingContentHandler(ContentHandler handler)
public void setOutputProperties(Properties props)
setOutputProperties in class Emitterpublic void setLexicalHandler(LexicalHandler handler)
public void setRequireWellFormed(boolean wellFormed)
public void setDocumentLocator(Locator locator)
setDocumentLocator in class Emitterpublic void startDocument()
throws TransformerException
startDocument in class EmitterTransformerExceptionpublic void endDocument()
throws TransformerException
endDocument in class EmitterTransformerExceptionpublic void startElement(int nameCode,
Attributes atts,
int[] namespaces,
int nscount)
throws 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 arrayTransformerExceptionpublic void endElement(int nameCode)
throws TransformerException
endElement in class EmitterTransformerExceptionpublic void characters(char[] chars,
int start,
int len)
throws TransformerException
characters in class EmitterTransformerExceptionprotected void notifyNotWellFormed()
throws SAXException
SAXExceptionpublic void processingInstruction(String target, String data) throws TransformerException
processingInstruction in class EmitterTransformerExceptionpublic void comment(char[] ch,
int start,
int length)
throws TransformerException
comment in class EmitterTransformerExceptionpublic void setEscaping(boolean escaping)
setEscaping in class Emitterpublic String getPublicId()
getPublicId in interface Locatorpublic int getLineNumber()
getLineNumber in interface Locatorpublic int getColumnNumber()
getColumnNumber in interface Locator