01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: /**
18: * @author Rustem V. Rafikov
19: * @version $Revision: 1.2 $
20: */package javax.imageio.stream;
21:
22: import java.io.DataOutput;
23: import java.io.IOException;
24:
25: public interface ImageOutputStream extends DataOutput, ImageInputStream {
26:
27: /**
28: * DataOutput methods redeclaration
29: */
30: void write(int b) throws IOException;
31:
32: void write(byte[] b) throws IOException;
33:
34: void write(byte[] b, int off, int len) throws IOException;
35:
36: void writeBoolean(boolean b) throws IOException;
37:
38: void writeByte(int b) throws IOException;
39:
40: void writeShort(int v) throws IOException;
41:
42: void writeChar(int v) throws IOException;
43:
44: void writeInt(int v) throws IOException;
45:
46: void writeLong(long v) throws IOException;
47:
48: void writeFloat(float v) throws IOException;
49:
50: void writeDouble(double v) throws IOException;
51:
52: void writeBytes(String s) throws IOException;
53:
54: void writeChars(String s) throws IOException;
55:
56: void writeUTF(String s) throws IOException;
57:
58: /**
59: * ImageInputStream method
60: */
61: void flushBefore(long pos) throws IOException;
62:
63: /**
64: * ImageOutputStream specific methods
65: */
66: void writeShorts(short[] s, int off, int len) throws IOException;
67:
68: void writeChars(char[] c, int off, int len) throws IOException;
69:
70: void writeInts(int[] i, int off, int len) throws IOException;
71:
72: void writeLongs(long[] l, int off, int len) throws IOException;
73:
74: void writeFloats(float[] f, int off, int len) throws IOException;
75:
76: void writeDoubles(double[] d, int off, int len) throws IOException;
77:
78: void writeBit(int bit) throws IOException;
79:
80: void writeBits(long bits, int numBits) throws IOException;
81:
82: }
|