Don't treat inner classes as test classes with ant.
[fits.git] / src / nom / tam / util / ArrayDataOutput.java
1 package nom.tam.util;\r
2 \r
3 import java.io.IOException;\r
4 \r
5 public interface ArrayDataOutput extends java.io.DataOutput {\r
6 \r
7     /** Write a generic (possibly multi-dimenionsional) primitive or String\r
8      *  array.  An array of Objects is also allowed if all\r
9      *  of the elements are valid arrays.\r
10      *  <p>\r
11      *  This routine is not called 'write' to avoid possible compilation\r
12      *  errors in routines which define only some of the other methods\r
13      *  of the interface (and defer to the superclass on others).\r
14      *  In that case there is an ambiguity as to whether to\r
15      *  call the routine in the current class but convert to\r
16      *  Object, or call the method from the super class with\r
17      *  the same type argument.\r
18      *  @param o        The primitive or String array to be written.\r
19      *  @throws IOException if the argument is not of the proper type\r
20      */\r
21     public void writeArray(Object o) throws IOException;\r
22 \r
23     /* Write a complete array */\r
24     public void write(byte[] buf) throws IOException;\r
25 \r
26     public void write(boolean[] buf) throws IOException;\r
27 \r
28     public void write(short[] buf) throws IOException;\r
29 \r
30     public void write(char[] buf) throws IOException;\r
31 \r
32     public void write(int[] buf) throws IOException;\r
33 \r
34     public void write(long[] buf) throws IOException;\r
35 \r
36     public void write(float[] buf) throws IOException;\r
37 \r
38     public void write(double[] buf) throws IOException;\r
39 \r
40     /* Write an array of Strings */\r
41     public void write(String[] buf) throws IOException;\r
42 \r
43     /* Write a segment of a primitive array. */\r
44     public void write(byte[] buf, int offset, int size) throws IOException;\r
45 \r
46     public void write(boolean[] buf, int offset, int size) throws IOException;\r
47 \r
48     public void write(char[] buf, int offset, int size) throws IOException;\r
49 \r
50     public void write(short[] buf, int offset, int size) throws IOException;\r
51 \r
52     public void write(int[] buf, int offset, int size) throws IOException;\r
53 \r
54     public void write(long[] buf, int offset, int size) throws IOException;\r
55 \r
56     public void write(float[] buf, int offset, int size) throws IOException;\r
57 \r
58     public void write(double[] buf, int offset, int size) throws IOException;\r
59 \r
60     /* Write some of an array of Strings */\r
61     public void write(String[] buf, int offset, int size) throws IOException;\r
62 \r
63     /* Flush the output buffer */\r
64     public void flush() throws IOException;\r
65 \r
66     public void close() throws IOException;\r
67 }\r