Package org.apache.abdera.util
Class AbstractNamedWriter
- java.lang.Object
-
- org.apache.abdera.util.AbstractWriter
-
- org.apache.abdera.util.AbstractNamedWriter
-
- All Implemented Interfaces:
NamedItem
,NamedWriter
,Writer
public abstract class AbstractNamedWriter extends AbstractWriter implements NamedWriter
Base abstract implementation of NamedWriter
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
java.lang.String[]
getOutputFormats()
Return a listing of MIME Media formats this NamedWriter is capable of outputting.boolean
outputsFormat(java.lang.String mediatype)
Returns true if the format produced by this writer matches the specified media type-
Methods inherited from class org.apache.abdera.util.AbstractWriter
getDefaultWriterOptions, setDefaultWriterOptions, write, writeTo, writeTo, writeTo, writeTo
-
-
-
-
Method Detail
-
getOutputFormats
public java.lang.String[] getOutputFormats()
Description copied from interface:NamedWriter
Return a listing of MIME Media formats this NamedWriter is capable of outputting.- Specified by:
getOutputFormats
in interfaceNamedWriter
-
outputsFormat
public boolean outputsFormat(java.lang.String mediatype)
Description copied from interface:NamedWriter
Returns true if the format produced by this writer matches the specified media type- Specified by:
outputsFormat
in interfaceNamedWriter
-
-