org.apache.maven.doxia.module.xhtml
Class XhtmlSinkFactory

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

public class XhtmlSinkFactory
extends AbstractXmlSinkFactory

Xhtml implementation of the Sink factory.

Since:
1.0
Version:
$Id: XhtmlSinkFactory.java 739565 2009-01-31 14:39:03Z vsiveton $
Author:
Vincent Siveton
Plexus component:
role:
"org.apache.maven.doxia.sink.SinkFactory"
role-hint:
"xhtml"

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

Constructor Detail

XhtmlSinkFactory

public XhtmlSinkFactory()
Method Detail

createSink

protected Sink createSink(Writer writer,
                          String encoding)
Create a text Sink for a given encoding.

Specified by:
createSink in class AbstractTextSinkFactory
Parameters:
writer - The writer for the sink output, never null.
encoding - The character encoding used by the writer.
Returns:
a Sink for text output in the given encoding.

createSink

protected Sink createSink(Writer writer,
                          String encoding,
                          String languageId)
Create a text Sink for a given encoding and for a given language identifier.

Specified by:
createSink in class AbstractXmlSinkFactory
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.