|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saxon.event.Emitter | +--net.sf.saxon.event.XMLEmitter | +--net.sf.saxon.event.HTMLEmitter
This class generates HTML output
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 |
characterSet, config, namePool, outputProperties, outputStream, streamResult, systemId, writer |
Fields inherited from interface javax.xml.transform.Result |
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
Constructor Summary | |
HTMLEmitter()
Constructor |
Method Summary | |
void |
characters(java.lang.CharSequence chars,
int properties)
Character data. |
void |
endElement()
Output an element end tag. |
protected static boolean |
isEmptyTag(java.lang.String tag)
|
static boolean |
isUrlAttribute(java.lang.String element,
java.lang.String attribute)
|
protected void |
openDocument()
Do the real work of starting the document. |
void |
processingInstruction(java.lang.String target,
java.lang.CharSequence data,
int properties)
Handle a processing instruction. |
void |
startContent()
Notify the start of the content, that is, the completion of all attributes and namespaces. |
void |
startDocument()
Output start of document |
void |
startElement(int nameCode,
int typeCode,
int properties)
Output element start tag |
protected void |
writeAttribute(int elCode,
java.lang.String attname,
java.lang.CharSequence value,
int properties)
Write attribute name=value pair. |
protected void |
writeEscape(java.lang.CharSequence chars,
boolean inAttribute)
Escape characters. |
Methods inherited from class net.sf.saxon.event.XMLEmitter |
attribute, closeStartTag, comment, emptyElementTagCloser, endDocument, namespace, outputCharacterReference, setDocumentLocator, testCharacters, writeDeclaration, writeDocType |
Methods inherited from class net.sf.saxon.event.Emitter |
getConfiguration, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, makeWriter, setConfiguration, setOutputProperties, setOutputStream, setStreamResult, setSystemId, setUnparsedEntity, setWriter, usesWriter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HTMLEmitter()
Method Detail |
protected static boolean isEmptyTag(java.lang.String tag)
public static boolean isUrlAttribute(java.lang.String element, java.lang.String attribute)
public void startDocument() throws javax.xml.transform.TransformerException
startDocument
in interface Receiver
startDocument
in class XMLEmitter
javax.xml.transform.TransformerException
protected void openDocument() throws javax.xml.transform.TransformerException
XMLEmitter
openDocument
in class XMLEmitter
javax.xml.transform.TransformerException
public void startElement(int nameCode, int typeCode, int properties) throws javax.xml.transform.TransformerException
startElement
in interface Receiver
startElement
in class XMLEmitter
nameCode
- integer code identifying the name of the element within the name pool.typeCode
- integer code identifying the element's type within the name pool.
javax.xml.transform.TransformerException
public void startContent() throws javax.xml.transform.TransformerException
Receiver
startContent
in interface Receiver
startContent
in class XMLEmitter
javax.xml.transform.TransformerException
protected void writeAttribute(int elCode, java.lang.String attname, java.lang.CharSequence value, int properties) throws javax.xml.transform.TransformerException
writeAttribute
in class XMLEmitter
elCode
- The element name is not used in this version of the
method, but is used in the HTML subclass.attname
- The attribute name, which has already been validated to ensure
it can be written in this encodingvalue
- The value of the attributeproperties
- Any special properties of the attribute
javax.xml.transform.TransformerException
protected void writeEscape(java.lang.CharSequence chars, boolean inAttribute) throws java.io.IOException
writeEscape
in class XMLEmitter
chars
- The character sequence containing the stringinAttribute
- Set to true if the text is in an attribute value
java.io.IOException
public void endElement() throws javax.xml.transform.TransformerException
endElement
in interface Receiver
endElement
in class XMLEmitter
javax.xml.transform.TransformerException
public void characters(java.lang.CharSequence chars, int properties) throws javax.xml.transform.TransformerException
characters
in interface Receiver
characters
in class XMLEmitter
chars
- The charactersproperties
- Bit significant value. The following bits are defined:
javax.xml.transform.TransformerException
public void processingInstruction(java.lang.String target, java.lang.CharSequence data, int properties) throws javax.xml.transform.TransformerException
processingInstruction
in interface Receiver
processingInstruction
in class XMLEmitter
target
- The PI name. This must be a legal name (it will not be checked).data
- The data portion of the processing instructionproperties
- Additional information about the PI. The following bits are
defined:
javax.xml.transform.TransformerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |