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
IOExceptionpublic SimpleBulkObjectWriter(OutputStream outputStream, DownloadFileType fileFormat) throws IOException
IOExceptionpublic void writeFileMetadata()
throws IOException
BulkObjectWriterwriteFileMetadata in interface BulkObjectWriterIOException - Occurs when the file can not be writtencom.microsoft.bingads.internal.bulk.BulkObjectWriter#writeFileMetadata()public void writeFormatVersion()
throws IOException
BulkObjectWriterwriteFormatVersion in interface BulkObjectWriterIOException - Occurs when the outputstream can not be writtenpublic void writeHeaders()
throws IOException
BulkObjectWriterwriteHeaders in interface BulkObjectWriterIOException - Occurs when the outputstream can not be writtenpublic void writeObjectRow(BulkObject bulkObject, boolean excludeReadonlyData) throws IOException
BulkObjectWriterwriteObjectRow in interface BulkObjectWriterbulkObject - The object to be written to fileIOException - Occurs when the file can not be writtenpublic void writeObjectRow(BulkObject bulkObject) throws IOException
BulkObjectWriterwriteObjectRow in interface BulkObjectWriterbulkObject - 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 Closeableclose in interface AutoCloseableIOExceptionCopyright © 2024. All rights reserved.