Package org.apache.abdera.util
Class AbstractWriterOptions
- java.lang.Object
-
- org.apache.abdera.util.AbstractWriterOptions
-
- All Implemented Interfaces:
java.lang.Cloneable,WriterOptions
public abstract class AbstractWriterOptions extends java.lang.Object implements WriterOptions
-
-
Constructor Summary
Constructors Constructor Description AbstractWriterOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()booleangetAutoClose()True if the writer should close the output stream or writer when finishedjava.lang.StringgetCharset()The character encoding to use for the outputCompressionUtil.CompressionCodec[]getCompressionCodecs()When writing, use the specified compression codecsWriterOptionssetAutoClose(boolean autoclose)True if the writer should close the output stream or writer when finishedWriterOptionssetCharset(java.lang.String charset)The character encoding to use for the outputWriterOptionssetCompressionCodecs(CompressionUtil.CompressionCodec... codecs)When writing, use the specified compression codecs
-
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException- Specified by:
clonein interfaceWriterOptions- Throws:
java.lang.CloneNotSupportedException
-
getCompressionCodecs
public CompressionUtil.CompressionCodec[] getCompressionCodecs()
Description copied from interface:WriterOptionsWhen writing, use the specified compression codecs- Specified by:
getCompressionCodecsin interfaceWriterOptions
-
setCompressionCodecs
public WriterOptions setCompressionCodecs(CompressionUtil.CompressionCodec... codecs)
Description copied from interface:WriterOptionsWhen writing, use the specified compression codecs- Specified by:
setCompressionCodecsin interfaceWriterOptions
-
getCharset
public java.lang.String getCharset()
Description copied from interface:WriterOptionsThe character encoding to use for the output- Specified by:
getCharsetin interfaceWriterOptions
-
setCharset
public WriterOptions setCharset(java.lang.String charset)
Description copied from interface:WriterOptionsThe character encoding to use for the output- Specified by:
setCharsetin interfaceWriterOptions
-
getAutoClose
public boolean getAutoClose()
Description copied from interface:WriterOptionsTrue if the writer should close the output stream or writer when finished- Specified by:
getAutoClosein interfaceWriterOptions
-
setAutoClose
public WriterOptions setAutoClose(boolean autoclose)
Description copied from interface:WriterOptionsTrue if the writer should close the output stream or writer when finished- Specified by:
setAutoClosein interfaceWriterOptions
-
-