com.univocity.parsers.common
Class CommonWriterSettings<F extends Format>

java.lang.Object
  extended by com.univocity.parsers.common.CommonSettings<F>
      extended by com.univocity.parsers.common.CommonWriterSettings<F>
Type Parameters:
F - the format supported by this writer.
Direct Known Subclasses:
CsvWriterSettings, FixedWidthWriterSettings

public abstract class CommonWriterSettings<F extends Format>
extends CommonSettings<F>

This is the parent class for all configuration classes used by writers (AbstractWriter)

By default, all writers work with, at least, the following configuration options in addition to the ones provided by CommonSettings:

Author:
uniVocity Software Pty Ltd - [email protected]
See Also:
RowWriterProcessor, CsvWriterSettings, FixedWidthWriterSettings

Constructor Summary
CommonWriterSettings()
           
 
Method Summary
 String getEmptyValue()
          Returns the String representation of an empty value (defaults to null)
 RowWriterProcessor<?> getRowWriterProcessor()
          Returns the implementation of the interface RowWriterProcessor which processes input objects into a manageable format for writing.
 void setEmptyValue(String emptyValue)
          Sets the String representation of an empty value (defaults to null)
 void setRowWriterProcessor(RowWriterProcessor<?> rowWriterProcessor)
          Defines a processor for input objects that converts them into a manageable format for writing.
 
Methods inherited from class com.univocity.parsers.common.CommonSettings
createDefaultFormat, excludeFields, excludeIndexes, getFormat, getHeaders, getIgnoreLeadingWhitespaces, getIgnoreTrailingWhitespaces, getMaxCharsPerColumn, getMaxColumns, getNullValue, getSkipEmptyLines, selectFields, selectIndexes, setFormat, setHeaders, setIgnoreLeadingWhitespaces, setIgnoreTrailingWhitespaces, setMaxCharsPerColumn, setMaxColumns, setNullValue, setSkipEmptyLines
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonWriterSettings

public CommonWriterSettings()
Method Detail

getEmptyValue

public String getEmptyValue()
Returns the String representation of an empty value (defaults to null)

When writing, if the writer has an empty String to write to the output, the emptyValue is used instead of an empty string

Returns:
the String representation of an empty value

setEmptyValue

public void setEmptyValue(String emptyValue)
Sets the String representation of an empty value (defaults to null)

If the writer has an empty String to write to the output, the emptyValue is used instead of an empty string

Parameters:
emptyValue - the String representation of an empty value

getRowWriterProcessor

public RowWriterProcessor<?> getRowWriterProcessor()
Returns the implementation of the interface RowWriterProcessor which processes input objects into a manageable format for writing.

Returns:
the implementation of the interface RowWriterProcessor which processes input objects into a manageable format for writing.
See Also:
ObjectRowWriterProcessor, BeanWriterProcessor

setRowWriterProcessor

public void setRowWriterProcessor(RowWriterProcessor<?> rowWriterProcessor)
Defines a processor for input objects that converts them into a manageable format for writing.

Parameters:
rowWriterProcessor - the implementation of the interface RowWriterProcessor which processes input objects into a manageable format for writing.
See Also:
ObjectRowWriterProcessor, BeanWriterProcessor


Copyright © 2014 uniVocity Software Pty Ltd. All rights reserved.