com.codetaco.funnel.provider.InputReader Maven / Gradle / Ivy
package com.codetaco.funnel.provider;
import java.io.File;
import java.io.IOException;
import java.text.ParseException;
/**
*
* InputReader interface.
*
*
* @author Chris DeGreef [email protected]
*/
public interface InputReader
{
/**
*
* close.
*
*
* @throws java.io.IOException if any.
* @throws java.text.ParseException if any.
*/
void close() throws IOException, ParseException;
/**
*
* length.
*
*
* @return a long.
* @throws java.io.IOException if any.
*/
long length() throws IOException;
/**
*
* open.
*
*
* @param _inputFile a {@link java.io.File} object.
* @throws java.io.IOException if any.
* @throws java.text.ParseException if any.
*/
void open(File _inputFile) throws IOException, ParseException;
/**
*
* position.
*
*
* @return a long.
* @throws java.io.IOException if any.
*/
long position() throws IOException;
/**
*
* read.
*
*
* @param row an array of byte.
* @return a int.
* @throws java.io.IOException if any.
*/
int read(final byte[] row) throws IOException;
}