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

se.l4.commons.io.ByteArrayConsumer Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
package se.l4.commons.io;

import java.io.IOException;

/**
 * Consumer of {@code byte[]} arrays.
 *
 * @author Andreas Holstenson
 *
 */
public interface ByteArrayConsumer
{
	/**
	 * Consumer the given data from the specified offset and no longer than
	 * the given length.
	 *
	 * @param data
	 *   the byte array of data
	 * @param offset
	 *   the offset to start consumption as
	 * @param length
	 *   the number of bytes to consume
	 */
	void consume(byte[] data, int offset, int length)
		throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy