public class BulkFileWriter extends Object implements Closeable
| Constructor and Description |
|---|
BulkFileWriter(BulkObjectWriter bulkObjectWriter)
Reserved for internal use.
|
BulkFileWriter(File filePath)
Creates a new instance of this class with the specified file path.
|
BulkFileWriter(File filePath,
DownloadFileType fileFormat)
Creates a new instance of this class with the specified file path and file format.
|
BulkFileWriter(OutputStream outputStream)
Creates a new instance of this class with the specified stream.
|
BulkFileWriter(OutputStream outputStream,
DownloadFileType fileFormat)
Creates a new instance of this class with the specified stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
writeEntity(BulkEntity entity)
Writes the specified entity to the file.
|
void |
writeEntity(BulkEntity entity,
boolean excludeReadonlyData)
Writes the specified entity to the file.
|
public BulkFileWriter(File filePath) throws IOException
filePath - Path of the bulk file to readIOExceptionpublic BulkFileWriter(OutputStream outputStream) throws IOException
outputStream - OutputStream to writeIOExceptionpublic BulkFileWriter(OutputStream outputStream, DownloadFileType fileFormat) throws IOException
outputStream - OutputStream to writeIOExceptionpublic BulkFileWriter(File filePath, DownloadFileType fileFormat) throws IOException
filePath - Path of the bulk file to readfileFormat - Delimiter to separate columns of data byIOExceptionpublic BulkFileWriter(BulkObjectWriter bulkObjectWriter)
bulkObjectWriter - Bulk object writerpublic void writeEntity(BulkEntity entity, boolean excludeReadonlyData) throws IOException
entity - a bulk entity to be written to fileexcludeReadonlyData - indicates whether readonly data (such as errors, performance data etc.) should be excluded when writing to fileIOExceptionpublic void writeEntity(BulkEntity entity) throws IOException
entity - a bulk entity to be written to fileIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2024. All rights reserved.