@Component(role=SinkFactory.class, hint="xhtml") public class XhtmlSinkFactory extends AbstractXmlSinkFactory
ROLE
Constructor and Description |
---|
XhtmlSinkFactory() |
Modifier and Type | Method and Description |
---|---|
protected Sink |
createSink(Writer writer,
String encoding)
Create a text Sink for a given encoding.
|
protected Sink |
createSink(Writer writer,
String encoding,
String languageId)
Create a text Sink for a given encoding and for a given language identifier.
|
createSink, createSink, createSink, createSink
public XhtmlSinkFactory()
protected Sink createSink(Writer writer, String encoding)
createSink
in class AbstractTextSinkFactory
writer
- The writer for the sink output, never null
.encoding
- The character encoding used by the writer.protected Sink createSink(Writer writer, String encoding, String languageId)
createSink
in class AbstractXmlSinkFactory
writer
- The writer for the sink output, never null
.encoding
- The character encoding used by the writer.languageId
- language identifier for the root element as defined by
IETF BCP 47, Tags for the Identification of Languages;
in addition, the empty string may be specified.Copyright © 2005–2017 The Apache Software Foundation. All rights reserved.