View Javadoc

1   /*
2    * <cvs:source>$Source: /devel/astrogrid/filestore/common/src/java/org/astrogrid/filestore/common/transfer/mock/Connector.java,v $</cvs:source>
3    * <cvs:author>$Author: jdt $</cvs:author>
4    * <cvs:date>$Date: 2004/11/25 00:19:19 $</cvs:date>
5    * <cvs:version>$Revision: 1.2 $</cvs:version>
6    * <cvs:log>
7    *   $Log: Connector.java,v $
8    *   Revision 1.2  2004/11/25 00:19:19  jdt
9    *   Merge from dave-dev-200410061224-200411221626
10   *
11   *   Revision 1.1.2.1  2004/10/21 21:00:13  dave
12   *   Added mock://xyz URL handler to enable testing of transfer.
13   *   Implemented importInit to the mock service and created transfer tests.
14   *
15   * </cvs:log>
16   *
17   */
18  package org.astrogrid.filestore.common.transfer.mock ;
19  
20  import java.io.InputStream ;
21  import java.io.OutputStream ;
22  import java.io.IOException ;
23  
24  /***
25   * An interface to handle creating IOStreams for a mock URLConnection.
26   *
27   */
28  public interface Connector
29  	{
30  	/***
31  	 * Get an InputStream to the URL content.
32  	 *
33  	 */
34  	public InputStream getInputStream()
35  		throws IOException ;
36  
37  	/***
38  	 * Get an OutputStream to the URL content.
39  	 *
40  	 */
41  	public OutputStream getOutputStream()
42  		throws IOException ;
43  
44  	}