|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xalan.transformer.SerializerSwitcher
This is a helper class that decides if Xalan needs to switch serializers, based on the first output element.
| Constructor Summary | |
SerializerSwitcher()
|
|
| Method Summary | |
private static String |
getOutputPropertyNoDefault(String qnameString,
Properties props)
Get the value of a property, without using the default properties. |
static Serializer |
switchSerializerIfHTML(String ns,
String localName,
Properties props,
Serializer oldSerializer)
Switch to HTML serializer if element is HTML |
static void |
switchSerializerIfHTML(TransformerImpl transformer,
String ns,
String localName)
Switch to HTML serializer if element is HTML |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SerializerSwitcher()
| Method Detail |
public static void switchSerializerIfHTML(TransformerImpl transformer,
String ns,
String localName)
throws javax.xml.transform.TransformerException
transformer - Non-null transformer instancens - Namespace URI of the elementlocalName - Local part of name of element
javax.xml.transform.TransformerException
private static String getOutputPropertyNoDefault(String qnameString,
Properties props)
throws IllegalArgumentException
IllegalArgumentException - If the property is not supported,
and is not namespaced.
public static Serializer switchSerializerIfHTML(String ns,
String localName,
Properties props,
Serializer oldSerializer)
throws javax.xml.transform.TransformerException
ns - Namespace URI of the elementlocalName - Local part of name of element
javax.xml.transform.TransformerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||