All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.bingads.v13.internal.bulk.BulkObjectWriter Maven / Gradle / Ivy

Go to download

The Bing Ads Java SDK is a library improving developer experience when working with the Bing Ads services by providing high-level access to features such as Bulk API, OAuth Authorization and SOAP API.

There is a newer version: 13.0.22.1
Show newest version
package com.microsoft.bingads.v13.internal.bulk;

import java.io.Closeable;
import java.io.IOException;

public interface BulkObjectWriter extends Closeable {

    /**
     * Writes all relevant metadata to the file
     *
     * @throws IOException Occurs when the file can not be written
     */
    public abstract void writeFileMetadata() throws IOException;

    /**
     * Writes a single object to file
     *
     * @param bulkObject The object to be written to file
     * @throws IOException Occurs when the file can not be written
     */
    public abstract void writeObjectRow(BulkObject bulkObject) throws IOException;

    /**
     * Writes a single object to file
     *
     * @param bulkObject The object to be written to file
     * @throws IOException Occurs when the file can not be written
     */
    public abstract void writeObjectRow(BulkObject bulkObject, boolean excludeReadonlyData) throws IOException;
    
    /**
     * Writes Bulk Header to output 
     *
     * @throws IOException Occurs when the outputstream can not be written
     */
    public abstract void writeHeaders() throws IOException;


    /**
     * Writes Bulk Format info to output 
     *
     * @throws IOException Occurs when the outputstream can not be written
     */
    public abstract void writeFormatVersion() throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy