|
|||||||
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
public class HTMLEmitter
This class generates HTML output
Constructor Summary | |
---|---|
HTMLEmitter()
Constructor |
Method Summary | |
---|---|
void |
characters(CharSequence chars,
int locationId,
int properties)
Character data. |
void |
endElement()
Output an element end tag. |
void |
open()
Output start of document |
void |
processingInstruction(String target,
CharSequence data,
int locationId,
int properties)
Handle a processing instruction. |
void |
startContent()
Notify the start of the content, that is, the completion of all attributes and namespaces. |
void |
startElement(int nameCode,
int typeCode,
int locationId,
int properties)
Output element start tag |
Methods inherited from class net.sf.saxon.event.XMLEmitter |
---|
attribute, close, closeStartTag, comment, endDocument, namespace, startDocument, writeCharSequence, writeDeclaration |
Methods inherited from class net.sf.saxon.event.Emitter |
---|
getConfiguration, getOutputProperties, getOutputStream, getPipelineConfiguration, getSystemId, getWriter, setOutputProperties, setOutputStream, setPipelineConfiguration, setStreamResult, setSystemId, setUnparsedEntity, setWriter, usesWriter |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTMLEmitter()
Method Detail |
---|
public void open() throws XPathException
open
in interface Receiver
open
in class XMLEmitter
XPathException
public void startElement(int nameCode, int typeCode, int locationId, int properties) throws XPathException
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. The value -1
indicates the default type, xs:untyped.locationId
- an integer which can be interpreted using a LocationProvider
to return
information such as line number and system ID. If no location information is available,
the value zero is supplied.properties
- bit-significant properties of the element node. If there are no revelant
properties, zero is supplied. The definitions of the bits are in class ReceiverOptions
XPathException
public void startContent() throws XPathException
Receiver
startContent
in interface Receiver
startContent
in class XMLEmitter
XPathException
public void endElement() throws XPathException
endElement
in interface Receiver
endElement
in class XMLEmitter
XPathException
public void characters(CharSequence chars, int locationId, int properties) throws XPathException
characters
in interface Receiver
characters
in class XMLEmitter
chars
- The characterslocationId
- an integer which can be interpreted using a LocationProvider
to return information such as line number and system ID. If no location information is available,
the value zero is supplied.properties
- Bit significant value. The following bits are defined:
XPathException
public void processingInstruction(String target, CharSequence data, int locationId, int properties) throws XPathException
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 instructionlocationId
- an integer which can be interpreted using a LocationProvider
to return
information such as line number and system ID. If no location information is available,
the value zero is supplied.properties
- Additional information about the PI. The following bits are
defined:
XPathException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |