Package org.apache.abdera.writer
Interface WriterFactory
-
@Deprecated(since="2021-07-29") public interface WriterFactory
Deprecated.This API is deprecated as Apache Abdera is a retired project since 2017.The WriterFactory is used a acquire instances of alternative writers registered with Abdera.- See Also:
Writer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description <T extends Writer>
TgetWriter()
Deprecated.Get the default writer.<T extends Writer>
TgetWriter(java.lang.String name)
Deprecated.Get the named writer.<T extends Writer>
TgetWriterByMediaType(java.lang.String mediatype)
Deprecated.Return a writer capable of outputting the given MIME media type<T extends StreamWriter>
TnewStreamWriter()
Deprecated.Get the default StreamWriter.<T extends StreamWriter>
TnewStreamWriter(java.lang.String name)
Deprecated.Get the named StreamWriter.
-
-
-
Method Detail
-
getWriter
<T extends Writer> T getWriter()
Deprecated.Get the default writer. This is equivalent to calling abdera.getWriter();- Returns:
- The default writer
-
getWriter
<T extends Writer> T getWriter(java.lang.String name)
Deprecated.Get the named writer.- Parameters:
name
- The name of the writer- Returns:
- The specified writer
-
getWriterByMediaType
<T extends Writer> T getWriterByMediaType(java.lang.String mediatype)
Deprecated.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()
Deprecated.Get the default StreamWriter. This is equivalent to calling abdera.getStreamWriter();- Returns:
- The default stream writer
-
newStreamWriter
<T extends StreamWriter> T newStreamWriter(java.lang.String name)
Deprecated.Get the named StreamWriter.- Parameters:
name
- The name of the StreamWriter- Returns:
- The specified StreamWriter
-
-