AntXtras/Svn4Ant-1.1.0

com.idaremedia.svn4ant.admin.transfer
Class FromFileConnection

java.lang.Object
  extended bycom.idaremedia.svn4ant.admin.transfer.FromFileConnection
All Implemented Interfaces:
org.tigris.subversion.javahl.InputInterface

public final class FromFileConnection
extends Object
implements org.tigris.subversion.javahl.InputInterface

Pipes contents of a file to an svnadmin load command.

Since:
JWare/Svn4Ant 1.1
Author:
ssmc, ©2007 SSMC
See Also:
SvnAdminLoadTask
Thread Safety:
single

Constructor Summary
FromFileConnection(File f)
          Initializes a new file to subversion pipe.
 
Method Summary
 void close()
          Closes the input file reader.
 int read(byte[] data)
          Returns the next set of data from the input file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FromFileConnection

public FromFileConnection(File f)
                   throws IOException
Initializes a new file to subversion pipe.

Parameters:
f - the source of dumped information (non-null, readable)
Throws:
IOException - if unable to open a inputstream to file.
Method Detail

read

public int read(byte[] data)
         throws IOException
Returns the next set of data from the input file.

Specified by:
read in interface org.tigris.subversion.javahl.InputInterface
Parameters:
data - the buffer to fill in (non-null)
Returns:
the number of bytes read.
Throws:
IOException - if unable to read data for any reason.

close

public void close()
           throws IOException
Closes the input file reader.

Specified by:
close in interface org.tigris.subversion.javahl.InputInterface
Throws:
IOException - if unable to close file for any reason.

AntXtras/Svn4Ant-1.1.0

Copyright (c) 2005-2008 Sandbox Software MC. All Rights Reserved.