org.tigris.subversion.javahl.tests

Class SVNTests.FileInputer

Enclosing Class:
SVNTests
Implemented Interfaces:
InputInterface

public class SVNTests.FileInputer
extends java.lang.Object
implements InputInterface

internal class which implements the InputInterface to read the data from a file.

Constructor Summary

FileInputer(File inputName)
create a new object

Method Summary

void
close()
close the input
int
read(byte[] data)
read the number of data.length bytes from input.

Constructor Details

FileInputer

public FileInputer(File inputName)
            throws IOException
create a new object
Parameters:
inputName - the file from which the data is read

Method Details

close

public void close()
            throws IOException
close the input
Specified by:
close in interface InputInterface

read

public int read(byte[] data)
            throws IOException
read the number of data.length bytes from input.
Specified by:
read in interface InputInterface
Parameters:
data - array to store the read bytes.