|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xalan.xsltc.runtime.TextOutput
Field Summary | |
static int |
HTML
|
static int |
QNAME
|
static int |
TEXT
|
static int |
UNKNOWN
|
static int |
XML
|
Constructor Summary | |
TextOutput(ContentHandler handler)
Creates a new translet output post-processor |
|
TextOutput(ContentHandler sax,
LexicalHandler lex,
java.lang.String encoding)
Creates a new translet output post-processor |
|
TextOutput(ContentHandler handler,
java.lang.String encoding)
Creates a new translet output post-processor |
Method Summary | |
void |
attribute(java.lang.String name,
java.lang.String value)
Put an attribute and its value in the start tag of an element. |
void |
characters(char[] ch,
int off,
int len)
Send characters to the output document |
void |
close()
Closes the output stream |
void |
closeStartTag()
This method is called when all the data needed for a call to the SAX handler's startElement() method has been gathered. |
void |
comment(java.lang.String comment)
Send a HTML-style comment to the output document |
void |
endDocument()
Ends the document output. |
void |
endElement(java.lang.String elementName)
End an element or CDATA section in the output document |
void |
namespace(java.lang.String prefix,
java.lang.String uri)
Send a namespace declaration in the output document. |
void |
omitHeader(boolean value)
Directive to turn xml header declaration on/off. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Send a processing instruction to the output document |
void |
setCdataElements(Hashtable elements)
The |
void |
setDoctype(java.lang.String system,
java.lang.String pub)
Set the output document system/public identifiers |
boolean |
setEscaping(boolean escape)
Turns special character escaping on/off. |
void |
setIndent(boolean indent)
Turns output indentation on/off. |
void |
setMediaType(java.lang.String mediaType)
Set the output media type - only relevant for HTML output |
void |
setStandalone(java.lang.String standalone)
Set the XML standalone attribute - must be "yes" or "no" |
void |
setType(int type)
Set the output type. |
void |
setVersion(java.lang.String version)
Set the XML output document version - should be 1.0 |
void |
startDocument()
Starts the output document. |
void |
startElement(java.lang.String elementName)
Start an element in the output document. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int UNKNOWN
public static final int XML
public static final int HTML
public static final int TEXT
public static final int QNAME
Constructor Detail |
public TextOutput(ContentHandler handler) throws java.io.IOException
handler
- A SAX2 handler to consume the generated SAX eventspublic TextOutput(ContentHandler handler, java.lang.String encoding) throws java.io.IOException
handler
- A SAX2 handler to consume the generated SAX eventsencoding
- The default encoding to use (set in public TextOutput(ContentHandler sax, LexicalHandler lex, java.lang.String encoding) throws java.io.IOException
handler
- A SAX2 handler to consume the generated SAX eventsencoding
- The default encoding to use (set in Method Detail |
public void close()
public void closeStartTag() throws TransletException
public boolean setEscaping(boolean escape) throws TransletException
public void startDocument() throws TransletException
public void endDocument() throws TransletException
public void characters(char[] ch, int off, int len) throws TransletException
public void startElement(java.lang.String elementName) throws TransletException
public void attribute(java.lang.String name, java.lang.String value) throws TransletException
public void endElement(java.lang.String elementName) throws TransletException
public void comment(java.lang.String comment) throws TransletException
public void processingInstruction(java.lang.String target, java.lang.String data) throws TransletException
public void namespace(java.lang.String prefix, java.lang.String uri) throws TransletException
public void setType(int type)
public void setIndent(boolean indent)
public void omitHeader(boolean value)
public void setVersion(java.lang.String version)
public void setStandalone(java.lang.String standalone)
public void setDoctype(java.lang.String system, java.lang.String pub)
public void setMediaType(java.lang.String mediaType)
public void setCdataElements(Hashtable elements)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |