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

com.microsoft.bingads.v13.internal.bulk.SimpleBulkStreamReader 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.File;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;

import com.microsoft.bingads.v13.bulk.DownloadFileType;

/**
 * Reads a bulk object and also its related data (for example corresponding
 * errors) from the stream
 */
public class SimpleBulkStreamReader extends SimpleBulkRecordReader {

    public SimpleBulkStreamReader(File file, DownloadFileType fileFormat) throws FileNotFoundException, UnsupportedEncodingException { 
        this(file, fileFormat, false);
    }

    public SimpleBulkStreamReader(File file, DownloadFileType fileFormat, boolean deleteFileOnClose) throws FileNotFoundException, UnsupportedEncodingException { 
        super(new SimpleBulkObjectReader(file, fileFormat == DownloadFileType.TSV ? '\t' : ','));
    }

    public SimpleBulkStreamReader(InputStream inputStream, DownloadFileType fileFormat) throws FileNotFoundException, UnsupportedEncodingException {
        super(new SimpleBulkObjectReader(inputStream, fileFormat == DownloadFileType.TSV ? '\t' : ','));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy