public class ExternalDataFileManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ExternalDataFileManager.StorageMode |
Modifier and Type | Field and Description |
---|---|
protected List<List<Object>> |
arrayBuffer |
protected List<Object> |
currentRecord |
protected int |
currentRecordNum |
protected ISAConst.DataFileFormat |
dataFileFormat |
protected String |
endLine |
protected ExternalDataFileHeader |
fileHeader |
protected FileWriter |
fileWriter |
protected boolean |
FlagUseAbsolutePathForFileLocation |
protected File |
outputDir |
protected String |
splitter |
protected ExternalDataFileManager.StorageMode |
storageMode |
protected StringBuffer |
strBuffer |
Constructor and Description |
---|
ExternalDataFileManager(File outputDir,
ISAConst.DataFileFormat dataFileFormat) |
ExternalDataFileManager(File outputDir,
ISAConst.DataFileFormat dataFileFormat,
ExternalDataFileHeader fileHeader) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
closeWriter(FileWriter writer) |
protected FileWriter |
createWriter(File file) |
void |
finalizeRecord() |
void |
finalizeRecord(boolean FinalizeIfEmpty) |
void |
finalizeRecordInFile() |
ISAConst.DataFileFormat |
getDataFileFormat() |
String |
getDataStringBuffer() |
ExternalDataFileHeader |
getFileHeader() |
File |
getOutputDir() |
ExternalDataFileManager.StorageMode |
getStorageMode() |
boolean |
isFlagUseAbsolutePathForFileLocation() |
void |
saveBufferAsFile(File file) |
void |
setFileHeader(ExternalDataFileHeader fileHeader) |
void |
setFlagUseAbsolutePathForFileLocation(boolean flagUseAbsolutePathForFileLocation) |
void |
setStorageMode(ExternalDataFileManager.StorageMode storageMode) |
void |
simpleStoreData(Object obj) |
ExternalDataFileLocation |
storeData(Object obj) |
void |
storeRecordNum(String prefix) |
protected ISAConst.DataFileFormat dataFileFormat
protected File outputDir
protected ExternalDataFileHeader fileHeader
protected ExternalDataFileManager.StorageMode storageMode
protected StringBuffer strBuffer
protected FileWriter fileWriter
protected String splitter
protected String endLine
protected boolean FlagUseAbsolutePathForFileLocation
protected int currentRecordNum
public ExternalDataFileManager(File outputDir, ISAConst.DataFileFormat dataFileFormat) throws Exception
Exception
public ExternalDataFileManager(File outputDir, ISAConst.DataFileFormat dataFileFormat, ExternalDataFileHeader fileHeader) throws Exception
Exception
public File getOutputDir()
public ExternalDataFileHeader getFileHeader()
public void setFileHeader(ExternalDataFileHeader fileHeader)
public ISAConst.DataFileFormat getDataFileFormat()
public ExternalDataFileManager.StorageMode getStorageMode()
public void setStorageMode(ExternalDataFileManager.StorageMode storageMode)
public boolean isFlagUseAbsolutePathForFileLocation()
public void setFlagUseAbsolutePathForFileLocation(boolean flagUseAbsolutePathForFileLocation)
public void simpleStoreData(Object obj)
public ExternalDataFileLocation storeData(Object obj)
public void storeRecordNum(String prefix)
public void finalizeRecord(boolean FinalizeIfEmpty) throws Exception
Exception
public String getDataStringBuffer()
protected FileWriter createWriter(File file) throws Exception
Exception
public void closeWriter(FileWriter writer) throws Exception
Exception
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.