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

com.microsoft.bingads.v10.internal.bulk.BulkStreamReader 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.23.2
Show newest version
package com.microsoft.bingads.v10.internal.bulk;

import com.microsoft.bingads.internal.functionalinterfaces.Predicate;
import java.io.Closeable;

public interface BulkStreamReader extends Closeable {

    /**
     * Reads a single bulk object from the file
     *
     * @return the next bulk object from the file
     */
    public BulkObject read();

    /**
     * Attempts to read an entity of a particular type
     *
     * @param klazz the type to attempt to read
     * @return an entity which is of the correct type or null if the next object
     * is not of the correct type
     */
    public  TryResult tryRead(Class klazz);

    /**
     * Attempts to read an entity of a particular type and which passes the
     * passed test function
     *
     * @param predicate A function with which to test the object
     * @param klazz the type to attempt to read
     * @return an entity which is of the correct type or null if the next object
     * is not of the correct type
     */
    public  TryResult tryRead(Predicate predicate, Class klazz);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy