org.apache.abdera.writer
Interface WriterFactory


public interface WriterFactory

The WriterFactory is used a acquire instances of alternative writers registered with Abdera.

See Also:
Writer

Method Summary
<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.
 

Method Detail

getWriter

<T extends Writer> T getWriter()
Get the default writer. This is equivalent to calling abdera.getWriter();

Returns:
The default writer

getWriter

<T extends Writer> T getWriter(String name)
Get the named writer.

Parameters:
name - The name of the writer
Returns:
The specified writer

getWriterByMediaType

<T extends Writer> T getWriterByMediaType(String mediatype)
Return a writer capable of outputting the given MIME media type

Parameters:
mediatype - A MIME media type
Returns:
A matching writer

newStreamWriter

<T extends StreamWriter> T newStreamWriter()
Get the default StreamWriter. This is equivalent to calling abdera.getStreamWriter();

Returns:
The default stream writer

newStreamWriter

<T extends StreamWriter> T newStreamWriter(String name)
Get the named StreamWriter.

Parameters:
name - The name of the StreamWriter
Returns:
The specified StreamWriter


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