public class DataWriterFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
GC_PREFERENCES |
| Constructor and Description |
|---|
DataWriterFactory() |
| Modifier and Type | Method and Description |
|---|---|
static DataWriter |
getDataWriter(File file,
DataWriterType type)
Standard factory method to retrieve one of the
DataWriter implementations. |
static DataWriter |
getDataWriter(File file,
DataWriterType type,
Map<String,Object> configuration)
Factory method to retrieve one of the
DataWriter implementations including
the option to add a map of configuration objects. |
public static final String GC_PREFERENCES
public static DataWriter getDataWriter(File file, DataWriterType type) throws IOException
DataWriter implementations.
If a DataWriter implementation needs additional configuration, use the other method.file - file, where to write output totype - type of DataWritertype parameterIOException - unknown DataWriter or problem creating filegetDataWriter(File, DataWriterType, Map)public static DataWriter getDataWriter(File file, DataWriterType type, Map<String,Object> configuration) throws IOException
DataWriter implementations including
the option to add a map of configuration objects. The map will be passed to the DataWriter,
which can use its contents.file - file, where to write output totype - type of DataWriterconfiguration - Map containing additional configuration objects that will be passed
to the DataWriter. All DataWriters supporting this parameter, need to document, what
they expect here.type parameterIOException - unknown DataWriter or problem creating fileCopyright © 2019. All rights reserved.