T - object typepublic interface ConfigurableObjectWriter<T>
extends org.metafacture.framework.ObjectReceiver<T>
ObjectWriter should offer
a default set of configuration options. These are defined by
this interface.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_FOOTER |
static java.lang.String |
DEFAULT_HEADER |
static java.lang.String |
DEFAULT_SEPARATOR |
| Modifier and Type | Method and Description |
|---|---|
FileCompression |
getCompression()
Returns the compression mode.
|
java.lang.String |
getEncoding()
Returns the encoding used by the underlying writer.
|
java.lang.String |
getFooter()
Returns the footer which is output after the last object.
|
java.lang.String |
getHeader()
Returns the header which is output before the first object.
|
java.lang.String |
getSeparator()
Returns the separator which is output between objects.
|
void |
setCompression(FileCompression compression)
Sets the compression mode.
|
void |
setCompression(java.lang.String compression)
Sets the compression mode.
|
void |
setEncoding(java.lang.String encoding)
Sets the encoding used by the underlying writer.
|
void |
setFooter(java.lang.String footer)
Sets the footer which is output after the last object.
|
void |
setHeader(java.lang.String header)
Sets the header which is output before the first object.
|
void |
setSeparator(java.lang.String separator)
Sets the separator which is output between objects.
|
static final java.lang.String DEFAULT_HEADER
static final java.lang.String DEFAULT_FOOTER
static final java.lang.String DEFAULT_SEPARATOR
java.lang.String getEncoding()
void setEncoding(java.lang.String encoding)
encoding - name of the encodingFileCompression getCompression()
void setCompression(FileCompression compression)
compression - type of compressionvoid setCompression(java.lang.String compression)
compression - type of compressionjava.lang.String getHeader()
void setHeader(java.lang.String header)
header - new header stringjava.lang.String getFooter()
void setFooter(java.lang.String footer)
footer - new footer stringjava.lang.String getSeparator()
void setSeparator(java.lang.String separator)
separator - new separator string