com.github.akurilov.commons.io.Output Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-commons Show documentation
Show all versions of java-commons Show documentation
Common functionality Java library
package com.github.akurilov.commons.io;
import java.io.Closeable;
import java.io.IOException;
import java.util.List;
/**
* The Java objects output supporting the batch calls
*/
public interface Output
extends Closeable {
/**
Write the data item
@param item the item to put
@throws IOException if fails some-why
*/
boolean put(final I item)
throws IOException;
/**
Bulk put method for the items from the specified buffer
@param buffer the buffer containing the items to put
@return the count of the items successfully written
@throws IOException
*/
int put(final List buffer, final int from, final int to)
throws IOException;
int put(final List buffer)
throws IOException;
/**
Make a {@link Input} instance from this.
@return {@link Input} instance containing the items which had been written to this output.
@throws IOException
*/
Input getInput()
throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy