org.apache.abdera.util
Class AbstractWriterOptions

java.lang.Object
  extended by org.apache.abdera.util.AbstractWriterOptions
All Implemented Interfaces:
Cloneable, WriterOptions
Direct Known Subclasses:
FOMWriterOptions

public abstract class AbstractWriterOptions
extends Object
implements WriterOptions


Field Summary
protected  boolean autoclose
           
protected  String charset
           
protected  CompressionUtil.CompressionCodec[] codecs
           
 
Constructor Summary
AbstractWriterOptions()
           
 
Method Summary
 Object clone()
           
 boolean getAutoClose()
          True if the writer should close the output stream or writer when finished
 String getCharset()
          The character encoding to use for the output
 CompressionUtil.CompressionCodec[] getCompressionCodecs()
          When writing, use the specified compression codecs
 WriterOptions setAutoClose(boolean autoclose)
          True if the writer should close the output stream or writer when finished
 WriterOptions setCharset(String charset)
          The character encoding to use for the output
 WriterOptions setCompressionCodecs(CompressionUtil.CompressionCodec... codecs)
          When writing, use the specified compression codecs
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

charset

protected String charset

codecs

protected CompressionUtil.CompressionCodec[] codecs

autoclose

protected boolean autoclose
Constructor Detail

AbstractWriterOptions

public AbstractWriterOptions()
Method Detail

clone

public Object clone()
             throws CloneNotSupportedException
Specified by:
clone in interface WriterOptions
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

getCompressionCodecs

public CompressionUtil.CompressionCodec[] getCompressionCodecs()
Description copied from interface: WriterOptions
When writing, use the specified compression codecs

Specified by:
getCompressionCodecs in interface WriterOptions

setCompressionCodecs

public WriterOptions setCompressionCodecs(CompressionUtil.CompressionCodec... codecs)
Description copied from interface: WriterOptions
When writing, use the specified compression codecs

Specified by:
setCompressionCodecs in interface WriterOptions

getCharset

public String getCharset()
Description copied from interface: WriterOptions
The character encoding to use for the output

Specified by:
getCharset in interface WriterOptions

setCharset

public WriterOptions setCharset(String charset)
Description copied from interface: WriterOptions
The character encoding to use for the output

Specified by:
setCharset in interface WriterOptions

getAutoClose

public boolean getAutoClose()
Description copied from interface: WriterOptions
True if the writer should close the output stream or writer when finished

Specified by:
getAutoClose in interface WriterOptions

setAutoClose

public WriterOptions setAutoClose(boolean autoclose)
Description copied from interface: WriterOptions
True if the writer should close the output stream or writer when finished

Specified by:
setAutoClose in interface WriterOptions


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