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 readIOException
public BulkFileWriter(OutputStream outputStream) throws IOException
outputStream
- OutputStream to writeIOException
public BulkFileWriter(OutputStream outputStream, DownloadFileType fileFormat) throws IOException
outputStream
- OutputStream to writeIOException
public BulkFileWriter(File filePath, DownloadFileType fileFormat) throws IOException
filePath
- Path of the bulk file to readfileFormat
- Delimiter to separate columns of data byIOException
public 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 fileIOException
public void writeEntity(BulkEntity entity) throws IOException
entity
- a bulk entity to be written to fileIOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2024. All rights reserved.