|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xalan.xsltc.runtime.DefaultSAXOutputHandler
Constructor Summary | |
DefaultSAXOutputHandler(java.io.OutputStream out,
java.lang.String encoding)
Constructor - set output-stream & output encoding. |
|
DefaultSAXOutputHandler(java.lang.String filename,
java.lang.String encoding)
Constructor - set output file and output encoding |
|
DefaultSAXOutputHandler(java.io.Writer writer)
Constructor - simple, initially for use in servlets |
|
DefaultSAXOutputHandler(java.io.Writer writer,
java.lang.String encoding)
Constructor - set Writer to send output to and output encoding |
Method Summary | |
void |
characters(char[] ch,
int off,
int len)
SAX2: Receive notification of character data. |
void |
close()
Close the output stream |
void |
comment(char[] ch,
int start,
int length)
|
void |
endCDATA()
|
void |
endDocument()
SAX2: Receive notification of the end of an element. |
void |
endDTD()
|
void |
endElement(java.lang.String uri,
java.lang.String localname,
java.lang.String elementName)
SAX2: Receive notification of the end of an element. |
void |
endEntity(java.lang.String name)
|
void |
endPrefixMapping(java.lang.String prefix)
SAX2: End the scope of a prefix-URI Namespace mapping. |
void |
ignorableWhitespace(char[] ch,
int start,
int len)
SAX2: Receive notification of ignorable whitespace in element content. |
void |
omitHeader(boolean value)
Turns xml declaration generation on/off, dependent on the attribute omit-xml-declaration in any xsl:output element. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
SAX2: Receive notification of a processing instruction. |
void |
setDocumentLocator(Locator locator)
SAX2: Receive an object for locating the origin of SAX document events. |
void |
setIndent(boolean indent)
Turns output indentation on/off (used with XML and HTML output only) Breaks the SAX HandlerBase interface, but TextOutput will only call this method of the SAX handler is an instance of this class. |
void |
setOutputType(int type)
Set the output type (either TEXT, HTML or XML) Breaks the SAX HandlerBase interface, but TextOutput will only call this method of the SAX handler is an instance of this class. |
void |
setStandalone(java.lang.String standalone)
Sets the 'standalone' attribute that will be output in the XML header. |
void |
setVersion(java.lang.String version)
Sets the version number that will be output in the XML header. |
void |
skippedEntity(java.lang.String name)
SAX2: Receive notification of a skipped entity. |
void |
startCDATA()
|
void |
startDocument()
SAX2: Receive notification of the beginning of a document. |
void |
startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
This method is part of the LexicalHandler interface. |
void |
startElement(java.lang.String uri,
java.lang.String localname,
java.lang.String elementName,
Attributes attrs)
SAX2: Receive notification of the beginning of an element. |
void |
startEntity(java.lang.String name)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
SAX2: Begin the scope of a prefix-URI Namespace mapping. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DefaultSAXOutputHandler(java.io.Writer writer, java.lang.String encoding) throws java.io.IOException
public DefaultSAXOutputHandler(java.io.Writer writer) throws java.io.IOException
public DefaultSAXOutputHandler(java.io.OutputStream out, java.lang.String encoding) throws java.io.IOException
public DefaultSAXOutputHandler(java.lang.String filename, java.lang.String encoding) throws java.io.IOException
Method Detail |
public void close()
public void startDocument() throws SAXException
public void endDocument() throws SAXException
public void startElement(java.lang.String uri, java.lang.String localname, java.lang.String elementName, Attributes attrs) throws SAXException
public void endElement(java.lang.String uri, java.lang.String localname, java.lang.String elementName) throws SAXException
public void characters(char[] ch, int off, int len) throws SAXException
public void processingInstruction(java.lang.String target, java.lang.String data) throws SAXException
public void ignorableWhitespace(char[] ch, int start, int len)
public void setDocumentLocator(Locator locator)
public void skippedEntity(java.lang.String name)
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
public void endPrefixMapping(java.lang.String prefix)
public void startCDATA()
public void endCDATA()
public void comment(char[] ch, int start, int length)
public void startEntity(java.lang.String name)
public void endDTD()
public void endEntity(java.lang.String name)
public void startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId) throws SAXException
name
- The document type name (name of first element)publicId
- systemId
- public void setIndent(boolean indent)
public void setVersion(java.lang.String version)
public void setStandalone(java.lang.String standalone)
public void omitHeader(boolean value)
public void setOutputType(int type) throws SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |