org.tigris.subversion.javahl.tests
Class SVNTests.FileInputer

java.lang.Object
  extended by org.tigris.subversion.javahl.tests.SVNTests.FileInputer
All Implemented Interfaces:
InputInterface
Enclosing class:
SVNTests

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
SVNTests.FileInputer(java.io.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVNTests.FileInputer

public SVNTests.FileInputer(java.io.File inputName)
                     throws java.io.IOException
create a new object

Parameters:
inputName - the file from which the data is read
Throws:
java.io.IOException
Method Detail

read

public int read(byte[] data)
         throws java.io.IOException
read the number of data.length bytes from input.

Specified by:
read in interface InputInterface
Parameters:
data - array to store the read bytes.
Throws:
java.io.IOException - throw in case of problems.

close

public void close()
           throws java.io.IOException
close the input

Specified by:
close in interface InputInterface
Throws:
java.io.IOException - throw in case of problems.