com.microsoft.bingads.v10.internal.bulk.BulkStreamReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of microsoft.bingads Show documentation
Show all versions of microsoft.bingads Show documentation
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.
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