org.apache.maven.doxia.sink
Class AbstractXmlSinkFactory
java.lang.Object
org.apache.maven.doxia.sink.AbstractTextSinkFactory
org.apache.maven.doxia.sink.AbstractXmlSinkFactory
- All Implemented Interfaces:
- SinkFactory
- Direct Known Subclasses:
- DocbookSinkFactory, FoSinkFactory, XdocSinkFactory, XhtmlSinkFactory
public abstract class AbstractXmlSinkFactory
- extends AbstractTextSinkFactory
An abstract SinkFactory
for XML markup syntax. UTF-8
is used
when no encoding is specified.
- Since:
- 1.1
- Version:
- $Id: AbstractXmlSinkFactory.java 746978 2009-02-23 12:20:33Z vsiveton $
- Author:
- Vincent Siveton
Fields inherited from interface org.apache.maven.doxia.sink.SinkFactory |
ROLE |
Method Summary |
protected abstract Sink |
createSink(Writer writer,
String encoding,
String languageId)
Create a text Sink for a given encoding and for a given language identifier. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractXmlSinkFactory
public AbstractXmlSinkFactory()
createSink
protected abstract Sink createSink(Writer writer,
String encoding,
String languageId)
- Create a text Sink for a given encoding and for a given language identifier.
- Parameters:
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.
- Returns:
- a Sink for XML output in the given encoding.
- See Also:
- http://www.w3.org/TR/REC-xml/#sec-lang-tag
Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.