| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectcom.icl.saxon.output.Emittercom.icl.saxon.output.XMLEmittercom.icl.saxon.output.HTMLEmitterpublic class HTMLEmitterextends XMLEmitterNested Class Summary |
Field Summary |
Fields inherited from class com.icl.saxon.output.XMLEmitter | |
characterSet, declarationIsWritten, empty, escaping, lastDisplayName, lastNameCode, lastPrefix, lastURI, openStartTag, preferHex | |
Fields inherited from class com.icl.saxon.output.Emitter | |
locator, namePool, outputProperties, outputStream, systemId, writer | |
Constructor Summary | |
| |
Method Summary | |
void |
|
void |
|
protected static boolean |
|
static boolean |
|
void |
|
void |
|
void |
|
protected void |
|
protected void |
|
Methods inherited from class com.icl.saxon.output.XMLEmitter | |
characters, closeStartTag, comment, emptyElementTagCloser, endDocument, endElement, outputCharacterReference, processingInstruction, setDocumentLocator, setEscaping, setOutputProperties, setResult, setUnparsedEntity, startDocument, startElement, testCharacters, testCharacters, writeAttribute, writeDeclaration, writeDocType, writeEscape | |
Methods inherited from class com.icl.saxon.output.Emitter | |
characters, comment, endDocument, endElement, getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, processingInstruction, setDocumentLocator, setEscaping, setNamePool, setOutputProperties, setOutputStream, setSystemId, setUnparsedEntity, setWriter, startDocument, startElement, usesWriter | |
public void characters(char[] ch,
int start,
int length)
throws TransformerExceptionCharacter data.
- Overrides:
- characters in interface XMLEmitter
public void endElement(int nameCode)
throws TransformerExceptionOutput an element end tag.
- Overrides:
- endElement in interface XMLEmitter
- Parameters:
protected static boolean isEmptyTag(String tag)
public static boolean isUrlAttribute(String element,
String attribute)public void processingInstruction(String target,
String data)
throws TransformerExceptionHandle a processing instruction.
- Overrides:
- processingInstruction in interface XMLEmitter
public void startDocument()
throws TransformerExceptionOutput start of document
- Overrides:
- startDocument in interface XMLEmitter
public void startElement(int nameCode,
Attributes atts,
int[] namespaces,
int nscount)
throws TransformerExceptionOutput element start tag
- Overrides:
- startElement in interface XMLEmitter
protected void writeAttribute(int elCode,
String attname,
String type,
String value)
throws TransformerExceptionWrite 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(ch[] ,
int start,
int length,
boolean inAttribute)
throws java.io.IOExceptionEscape characters. Overrides the XML behaviour
- Overrides:
- writeEscape in interface XMLEmitter