01: package org.tigris.subversion.javahl;
02:
03: import java.io.IOException;
04:
05: /**
06: * @copyright
07: * ====================================================================
08: * Copyright (c) 2004 CollabNet. All rights reserved.
09: *
10: * This software is licensed as described in the file COPYING, which
11: * you should have received as part of this distribution. The terms
12: * are also available at http://subversion.tigris.org/license-1.html.
13: * If newer versions of this license are posted there, you may use a
14: * newer version instead, at your option.
15: *
16: * This software consists of voluntary contributions made by many
17: * individuals. For exact contribution history, see the revision
18: * history and logs, available at http://subversion.tigris.org/.
19: * ====================================================================
20: * @endcopyright
21: */
22: /**
23: * Interface for data to be received from subversion
24: * used for SVNAdmin.load and SVNAdmin.dump
25: */
26: public interface InputInterface {
27: /**
28: * read the number of data.length bytes from input.
29: * @param data array to store the read bytes.
30: * @throws IOException throw in case of problems.
31: */
32: public int read(byte[] data) throws IOException;
33:
34: /**
35: * close the input
36: * @throws IOException throw in case of problems.
37: */
38: public void close() throws IOException;
39: }
|