public class SerializerSwitcher extends Object
Constructor and Description |
---|
SerializerSwitcher() |
Modifier and Type | Method and Description |
---|---|
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
|
public static void switchSerializerIfHTML(TransformerImpl transformer, String ns, String localName) throws TransformerException
transformer
- Non-null transformer instancens
- Namespace URI of the elementlocalName
- Local part of name of elementTransformerException
public static Serializer switchSerializerIfHTML(String ns, String localName, Properties props, Serializer oldSerializer) throws TransformerException
ns
- Namespace URI of the elementlocalName
- Local part of name of elementTransformerException
Copyright © 2021 JBoss by Red Hat. All rights reserved.