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.StringgetName()java.lang.String[]getOutputFormats()Return a listing of MIME Media formats this NamedWriter is capable of outputting.booleanoutputsFormat(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:NamedWriterReturn a listing of MIME Media formats this NamedWriter is capable of outputting.- Specified by:
getOutputFormatsin interfaceNamedWriter
-
outputsFormat
public boolean outputsFormat(java.lang.String mediatype)
Description copied from interface:NamedWriterReturns true if the format produced by this writer matches the specified media type- Specified by:
outputsFormatin interfaceNamedWriter
-
-