public class SimpleBulkObjectWriter extends Object implements BulkObjectWriter
Constructor and Description |
---|
SimpleBulkObjectWriter(File filePath,
DownloadFileType fileFormat) |
SimpleBulkObjectWriter(OutputStream outputStream,
DownloadFileType fileFormat) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
writeFileMetadata()
Writes all relevant metadata to the file
|
void |
writeFormatVersion()
Writes Bulk Format info to output
|
void |
writeHeaders()
Writes Bulk Header to output
|
void |
writeObjectRow(BulkObject bulkObject)
Writes a single object to file
|
void |
writeObjectRow(BulkObject bulkObject,
boolean excludeReadonlyData)
Writes a single object to file
|
public SimpleBulkObjectWriter(File filePath, DownloadFileType fileFormat) throws IOException
IOException
public SimpleBulkObjectWriter(OutputStream outputStream, DownloadFileType fileFormat) throws IOException
IOException
public void writeFileMetadata() throws IOException
BulkObjectWriter
writeFileMetadata
in interface BulkObjectWriter
IOException
- Occurs when the file can not be writtencom.microsoft.bingads.internal.bulk.BulkObjectWriter#writeFileMetadata()
public void writeFormatVersion() throws IOException
BulkObjectWriter
writeFormatVersion
in interface BulkObjectWriter
IOException
- Occurs when the outputstream can not be writtenpublic void writeHeaders() throws IOException
BulkObjectWriter
writeHeaders
in interface BulkObjectWriter
IOException
- Occurs when the outputstream can not be writtenpublic void writeObjectRow(BulkObject bulkObject, boolean excludeReadonlyData) throws IOException
BulkObjectWriter
writeObjectRow
in interface BulkObjectWriter
bulkObject
- The object to be written to fileIOException
- Occurs when the file can not be writtenpublic void writeObjectRow(BulkObject bulkObject) throws IOException
BulkObjectWriter
writeObjectRow
in interface BulkObjectWriter
bulkObject
- The object to be written to fileIOException
- Occurs when the file can not be writtencom.microsoft.bingads.internal.bulk.BulkObjectWriter#writeObjectRow(com.microsoft.bingads.internal.bulk.BulkObject)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2024. All rights reserved.