1 7 8 package javax.imageio.stream; 9 10 import java.io.DataInput ; 11 import java.io.EOFException ; 12 import java.io.IOException ; 13 import java.io.UTFDataFormatException ; 14 import java.nio.ByteOrder ; 15 16 30 public interface ImageInputStream extends DataInput { 31 32 60 void setByteOrder(ByteOrder byteOrder); 61 62 74 ByteOrder getByteOrder(); 75 76 89 int read() throws IOException ; 90 91 110 int read(byte[] b) throws IOException ; 111 112 136 int read(byte[] b, int off, int len) throws IOException ; 137 138 158 void readBytes(IIOByteBuffer buf, int len) throws IOException ; 159 160 173 boolean readBoolean() throws IOException ; 174 175 191 byte readByte() throws IOException ; 192 193 215 int readUnsignedByte() throws IOException ; 216 217 233 short readShort() throws IOException ; 234 235 254 int readUnsignedShort() throws IOException ; 255 256 271 char readChar() throws IOException ; 272 273 289 int readInt() throws IOException ; 290 291 309 long readUnsignedInt() throws IOException ; 310 311 327 long readLong() throws IOException ; 328 329 345 float readFloat() throws IOException ; 346 347 363 double readDouble() throws IOException ; 364 365 397 String readLine() throws IOException ; 398 399 481 String readUTF() throws IOException ; 482 483 505 void readFully(byte[] b, int off, int len) throws IOException ; 506 507 524 void readFully(byte[] b) throws IOException ; 525 526 549 void readFully(short[] s, int off, int len) throws IOException ; 550 551 574 void readFully(char[] c, int off, int len) throws IOException ; 575 576 599 void readFully(int[] i, int off, int len) throws IOException ; 600 601 624 void readFully(long[] l, int off, int len) throws IOException ; 625 626 649 void readFully(float[] f, int off, int len) throws IOException ; 650 651 674 void readFully(double[] d, int off, int len) throws IOException ; 675 676 684 long getStreamPosition() throws IOException ; 685 686 705 int getBitOffset() throws IOException ; 706 707 724 void setBitOffset(int bitOffset) throws IOException ; 725 726 739 int readBit() throws IOException ; 740 741 782 long readBits(int numBits) throws IOException ; 783 784 793 long length() throws IOException ; 794 795 810 int skipBytes(int n) throws IOException ; 811 812 825 long skipBytes(long n) throws IOException ; 826 827 847 void seek(long pos) throws IOException ; 848 849 865 void mark(); 866 867 880 void reset() throws IOException ; 881 882 901 void flushBefore(long pos) throws IOException ; 902 903 910 void flush() throws IOException ; 911 912 921 long getFlushedPosition(); 922 923 935 boolean isCached(); 936 937 950 boolean isCachedMemory(); 951 952 965 boolean isCachedFile(); 966 967 976 void close() throws IOException ; 977 } 978 | Popular Tags |