|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.xsl.result.DefaultSerializer
A class that implements the default serializer behavior: i.e., it decides to use XML or HTML based on the rules described in the XSLT spec
| Constructor Summary | |
DefaultSerializer()
|
|
DefaultSerializer(OutputStream stream)
|
|
| Method Summary | |
void |
attribute(String name,
String value)
Receive notification of an attribute. |
void |
characters(String data)
Receive notification of character data. |
void |
comment(String value)
Receive notification of a comment. |
void |
endDocument()
Receive notification of the end of a document. |
void |
endElement(String name)
Receive notification of the end of an element. |
SerializerOptions |
getOptions()
Get the options currently in effect for this serializer |
OutputStream |
getStream()
Return the stream to which the serializer is writing the output bytes. |
void |
namespace(String name,
NamespaceName value)
Receive notification of a namespace node. |
void |
noTextEscaping(boolean noEscape)
Tell Serializer to do no text escaping |
void |
processingInstruction(String target,
String value)
Receive notification of a processing instruction. |
void |
setOptions(SerializerOptions options)
Set the options for this serializer |
void |
setStream(OutputStream stream)
Set the output stream to which the serializer will write the bytes |
void |
startDocument()
Receive notification of the beginning of a document. |
void |
startElement(String name,
String namespaceURI)
Receive notification of the beginning of an element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultSerializer()
public DefaultSerializer(OutputStream stream)
| Method Detail |
public void startDocument()
throws ResultException
startDocument in interface ResultHandlerResultException - if an implementation-dependent error occurs
public void endDocument()
throws ResultException
endDocument in interface ResultHandlerResultException - if an implementation-dependent error occurs
public void startElement(String name,
String namespaceURI)
throws IllegalNameException,
IllegalNodeException,
ResultException
startElement in interface ResultHandlername - the element's namenamespaceURI - the element's namespace uri
IllegalNameException - if the specified element name is illegal
IllegalNodeException - if the current node cannot contain elements
ResultException - if an implementation-dependent error occurs
public void endElement(String name)
throws ResultException
endElement in interface ResultHandlerResultException - if an implementation-dependent error occurs
public void attribute(String name,
String value)
throws AttributeAfterChildException,
IllegalNameException,
IllegalNodeException,
ResultException
attribute in interface ResultHandlername - the attribute's namevalue - the attribute's value
AttributeAfterChildException - if the current node is an element with children
(attributes cannot be added to an element after children
have been added to it)
IllegalNameException - if the specified attribute name is illegal
IllegalNodeException - if the current node is not an element
ResultException - if an implementation-dependent error occurs
public void characters(String data)
throws IllegalNodeException,
ResultException
characters in interface ResultHandlerdata - the character data
IllegalNodeException - if the current node cannot contain character data
ResultException - if an implementation-dependent error occurs
public void processingInstruction(String target,
String value)
throws IllegalNameException,
IllegalNodeException,
ResultException
processingInstruction in interface ResultHandlertarget - the processing instruction's targetvalue - the processing instruction's value, or null
if there is no value
IllegalNameException - if the specified target name is illegal
IllegalNodeException - if the current node cannot contain processing
instructions
ResultException - if an implementation-dependent error occurs
public void comment(String value)
throws IllegalNodeException,
ResultException
comment in interface ResultHandlervalue - the comment's value
IllegalNodeException - if the current node cannot contain comments
ResultException - if an implementation-dependent error occurs
public void namespace(String name,
NamespaceName value)
throws IllegalNodeException,
ResultException
namespace in interface ResultHandlername - the namespace prefixvalue - the namespace name (URI)
IllegalNodeException - if the current node cannot contain namespaces
ResultException - if an implementation-dependent error occurspublic SerializerOptions getOptions()
getOptions in interface Serializerpublic void setOptions(SerializerOptions options)
setOptions in interface Serializeroptions - The options object for this serializerpublic OutputStream getStream()
getStream in interface Serializerpublic void setStream(OutputStream stream)
setStream in interface Serializerstream - The output streampublic void noTextEscaping(boolean noEscape)
noTextEscaping in interface SerializernoEscape - True if no escaping should
be performed, false if escaping should be
performed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||