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 to send data to subversion
24: * used by SVNAdmin.load
25: */
26: public interface OutputInterface {
27: /**
28: * write the bytes in data to java
29: * @param data the data to be writtem
30: * @throws IOException throw in case of problems.
31: */
32: public int write(byte[] data) throws IOException;
33:
34: /**
35: * close the output
36: * @throws IOException throw in case of problems.
37: */
38: public void close() throws IOException;
39: }
|