net.datacrow.core.migration.itemexport
Class ItemExporter
java.lang.Object
net.datacrow.core.migration.ItemMigrater
net.datacrow.core.migration.itemexport.ItemExporter
- Direct Known Subclasses:
- CsvExporter, XmlExporter
public abstract class ItemExporter
- extends ItemMigrater
Constructor Summary |
ItemExporter(int moduleIdx,
java.lang.String key,
int mode)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
items
protected java.util.Collection<java.lang.String> items
bos
protected java.io.BufferedOutputStream bos
client
protected IItemExporterClient client
settings
protected ItemExporterSettings settings
fields
protected int[] fields
success
protected boolean success
ItemExporter
public ItemExporter(int moduleIdx,
java.lang.String key,
int mode)
throws java.lang.Exception
- Throws:
java.lang.Exception
start
public void start()
throws java.lang.Exception
- Overrides:
start
in class ItemMigrater
- Throws:
java.lang.Exception
setClient
public void setClient(IItemExporterClient client)
setItems
public void setItems(java.util.List<java.lang.String> items)
getFields
public int[] getFields()
setFields
public void setFields(int[] fields)
setSettings
public void setSettings(ItemExporterSettings properties)
initialize
protected void initialize()
throws java.lang.Exception
- Specified by:
initialize
in class ItemMigrater
- Throws:
java.lang.Exception
isSuccessfull
public boolean isSuccessfull()
getFileType
public abstract java.lang.String getFileType()
- The file type.
- Returns:
- File extension.