Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
net.sf.saxon.event.Emitter
net.sf.saxon.event.XMLEmitter
net.sf.saxon.event.HTMLEmitter
public class HTMLEmitter
extends XMLEmitter
Field Summary |
Fields inherited from class net.sf.saxon.event.XMLEmitter | |
declarationIsWritten , elementCode , elementStack , empty , openStartTag , preferHex , undeclareNamespaces |
Fields inherited from class net.sf.saxon.event.Emitter | |
allCharactersEncodable , characterSet , namePool , outputProperties , outputStream , pipelineConfig , streamResult , systemId , writer |
Constructor Summary | |
|
Method Summary | |
void |
|
void |
|
protected static boolean |
|
void |
|
protected void | |
void |
|
void | |
void |
|
protected void |
|
protected void |
|
Methods inherited from class net.sf.saxon.event.XMLEmitter | |
attribute , characters , close , closeStartTag , comment , emptyElementTagCloser , endDocument , endElement , namespace , open , openDocument , outputCharacterReference , processingInstruction , startContent , startDocument , startElement , testCharacters , writeAttribute , writeCharSequence , writeDeclaration , writeDocType , writeEscape |
Methods inherited from class net.sf.saxon.event.Emitter | |
getConfiguration , getOutputProperties , getOutputStream , getPipelineConfiguration , getSystemId , getWriter , makeWriter , setOutputProperties , setOutputStream , setPipelineConfiguration , setStreamResult , setSystemId , setUnparsedEntity , setWriter , usesWriter |
public void characters(CharSequence chars, int locationId, int properties) throws XPathException
Character data.
- Specified by:
- characters in interface Receiver
- Overrides:
- characters in interface XMLEmitter
public void endElement() throws XPathException
Output an element end tag.
- Specified by:
- endElement in interface Receiver
- Overrides:
- endElement in interface XMLEmitter
protected static boolean isEmptyTag(String tag)
public void open() throws XPathException
Output start of document
- Overrides:
- open in interface XMLEmitter
protected void openDocument() throws XPathException
- Overrides:
- openDocument in interface XMLEmitter
public void processingInstruction(String target, CharSequence data, int locationId, int properties) throws XPathException
Handle a processing instruction.
- Specified by:
- processingInstruction in interface Receiver
- Overrides:
- processingInstruction in interface XMLEmitter
public void startContent() throws XPathException
- Specified by:
- startContent in interface Receiver
- Overrides:
- startContent in interface XMLEmitter
public void startElement(int nameCode, int typeCode, int locationId, int properties) throws XPathException
Output element start tag
- Specified by:
- startElement in interface Receiver
- Overrides:
- startElement in interface XMLEmitter
protected void writeAttribute(int elCode, String attname, CharSequence value, int properties) throws XPathException
Write attribute name=value pair. Overrides the XML behaviour if the name and value are the same (we assume this is a boolean attribute to be minimised), or if the value is a URL.
- Overrides:
- writeAttribute in interface XMLEmitter
protected void writeEscape(CharSequence chars, boolean inAttribute) throws java.io.IOException, XPathException
Escape characters. Overrides the XML behaviour
- Overrides:
- writeEscape in interface XMLEmitter