org.apache.maven.doxia.sink
Class AbstractXmlSinkFactory

java.lang.Object
  extended by org.apache.maven.doxia.sink.AbstractTextSinkFactory
      extended by org.apache.maven.doxia.sink.AbstractXmlSinkFactory
All Implemented Interfaces:
SinkFactory

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

Field Summary
 
Fields inherited from interface org.apache.maven.doxia.sink.SinkFactory
ROLE
 
Constructor Summary
AbstractXmlSinkFactory()
           
 
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 org.apache.maven.doxia.sink.AbstractTextSinkFactory
createSink, createSink, createSink, createSink, createSink
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractXmlSinkFactory

public AbstractXmlSinkFactory()
Method Detail

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.