com.codetaco.funnel.provider.RandomAccessInputSource Maven / Gradle / Ivy
package com.codetaco.funnel.provider;
import java.io.IOException;
import java.text.ParseException;
/**
*
* RandomAccessInputSource interface.
*
*
* @author Chris DeGreef [email protected]
*/
public interface RandomAccessInputSource
{
/**
*
* close.
*
*
* @throws java.io.IOException if any.
* @throws java.text.ParseException if any.
*/
public void close() throws IOException, ParseException;
/**
*
* open.
*
*
* @throws java.io.IOException if any.
* @throws java.text.ParseException if any.
*/
public void open() throws IOException, ParseException;
/**
*
* read.
*
*
* @param originalInputFileIndex a int.
* @param originalBytes an array of byte.
* @param originalLocation a long.
* @param originalSize a int.
* @return a int.
* @throws java.io.IOException if any.
*/
public int read(int originalInputFileIndex, byte[] originalBytes, long originalLocation, int originalSize)
throws IOException;
}