org.apache.abdera.parser.stax
Class FOMWriterFactory

java.lang.Object
  extended by org.apache.abdera.parser.stax.FOMWriterFactory
All Implemented Interfaces:
WriterFactory

public class FOMWriterFactory
extends Object
implements WriterFactory


Constructor Summary
FOMWriterFactory()
           
FOMWriterFactory(Abdera abdera)
           
 
Method Summary
protected  Abdera getAbdera()
           
<T extends Writer>
T
getWriter()
          Get the default writer.
<T extends Writer>
T
getWriter(String name)
          Get the named writer.
<T extends Writer>
T
getWriterByMediaType(String mediatype)
          Return a writer capable of outputting the given MIME media type
<T extends StreamWriter>
T
newStreamWriter()
          Get the default StreamWriter.
<T extends StreamWriter>
T
newStreamWriter(String name)
          Get the named StreamWriter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FOMWriterFactory

public FOMWriterFactory()

FOMWriterFactory

public FOMWriterFactory(Abdera abdera)
Method Detail

getAbdera

protected Abdera getAbdera()

getWriter

public <T extends Writer> T getWriter()
Description copied from interface: WriterFactory
Get the default writer. This is equivalent to calling abdera.getWriter();

Specified by:
getWriter in interface WriterFactory
Returns:
The default writer

getWriter

public <T extends Writer> T getWriter(String name)
Description copied from interface: WriterFactory
Get the named writer.

Specified by:
getWriter in interface WriterFactory
Parameters:
name - The name of the writer
Returns:
The specified writer

getWriterByMediaType

public <T extends Writer> T getWriterByMediaType(String mediatype)
Description copied from interface: WriterFactory
Return a writer capable of outputting the given MIME media type

Specified by:
getWriterByMediaType in interface WriterFactory
Parameters:
mediatype - A MIME media type
Returns:
A matching writer

newStreamWriter

public <T extends StreamWriter> T newStreamWriter()
Description copied from interface: WriterFactory
Get the default StreamWriter. This is equivalent to calling abdera.getStreamWriter();

Specified by:
newStreamWriter in interface WriterFactory
Returns:
The default stream writer

newStreamWriter

public <T extends StreamWriter> T newStreamWriter(String name)
Description copied from interface: WriterFactory
Get the named StreamWriter.

Specified by:
newStreamWriter in interface WriterFactory
Parameters:
name - The name of the StreamWriter
Returns:
The specified StreamWriter


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.