Interface ImageInputStream
-
- All Superinterfaces:
DataInput
- All Known Subinterfaces:
ImageOutputStream
- All Known Implementing Classes:
ImageInputStreamImpl,ImageOutputStreamImpl,MemoryCacheImageInputStream,MemoryCacheImageOutputStream
public interface ImageInputStream extends DataInput
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()voidflush()voidflushBefore(long pos)intgetBitOffset()ByteOrdergetByteOrder()longgetFlushedPosition()longgetStreamPosition()booleanisCached()booleanisCachedFile()booleanisCachedMemory()longlength()voidmark()intread()intread(byte[] b)intread(byte[] b, int off, int len)intreadBit()longreadBits(int numBits)booleanreadBoolean()bytereadByte()voidreadBytes(IIOByteBuffer buf, int len)charreadChar()doublereadDouble()floatreadFloat()voidreadFully(byte[] b)voidreadFully(byte[] b, int off, int len)voidreadFully(char[] c, int off, int len)voidreadFully(double[] d, int off, int len)voidreadFully(float[] f, int off, int len)voidreadFully(int[] i, int off, int len)voidreadFully(long[] l, int off, int len)voidreadFully(short[] s, int off, int len)intreadInt()StringreadLine()longreadLong()shortreadShort()intreadUnsignedByte()longreadUnsignedInt()intreadUnsignedShort()StringreadUTF()voidreset()voidseek(long pos)voidsetBitOffset(int bitOffset)voidsetByteOrder(ByteOrder byteOrder)intskipBytes(int n)longskipBytes(long n)
-
-
-
Method Detail
-
setByteOrder
void setByteOrder(ByteOrder byteOrder)
-
getByteOrder
ByteOrder getByteOrder()
-
read
int read() throws IOException
- Throws:
IOException
-
read
int read(byte[] b) throws IOException
- Throws:
IOException
-
read
int read(byte[] b, int off, int len) throws IOException- Throws:
IOException
-
readBytes
void readBytes(IIOByteBuffer buf, int len) throws IOException
- Throws:
IOException
-
readBoolean
boolean readBoolean() throws IOException- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException
-
readByte
byte readByte() throws IOException- Specified by:
readBytein interfaceDataInput- Throws:
IOException
-
readUnsignedByte
int readUnsignedByte() throws IOException- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
IOException
-
readShort
short readShort() throws IOException- Specified by:
readShortin interfaceDataInput- Throws:
IOException
-
readUnsignedShort
int readUnsignedShort() throws IOException- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException
-
readChar
char readChar() throws IOException- Specified by:
readCharin interfaceDataInput- Throws:
IOException
-
readInt
int readInt() throws IOException- Specified by:
readIntin interfaceDataInput- Throws:
IOException
-
readUnsignedInt
long readUnsignedInt() throws IOException- Throws:
IOException
-
readLong
long readLong() throws IOException- Specified by:
readLongin interfaceDataInput- Throws:
IOException
-
readFloat
float readFloat() throws IOException- Specified by:
readFloatin interfaceDataInput- Throws:
IOException
-
readDouble
double readDouble() throws IOException- Specified by:
readDoublein interfaceDataInput- Throws:
IOException
-
readLine
String readLine() throws IOException
- Specified by:
readLinein interfaceDataInput- Throws:
IOException
-
readUTF
String readUTF() throws IOException
- Specified by:
readUTFin interfaceDataInput- Throws:
IOException
-
readFully
void readFully(byte[] b, int off, int len) throws IOException- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
void readFully(byte[] b) throws IOException- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
void readFully(short[] s, int off, int len) throws IOException- Throws:
IOException
-
readFully
void readFully(char[] c, int off, int len) throws IOException- Throws:
IOException
-
readFully
void readFully(int[] i, int off, int len) throws IOException- Throws:
IOException
-
readFully
void readFully(long[] l, int off, int len) throws IOException- Throws:
IOException
-
readFully
void readFully(float[] f, int off, int len) throws IOException- Throws:
IOException
-
readFully
void readFully(double[] d, int off, int len) throws IOException- Throws:
IOException
-
getStreamPosition
long getStreamPosition() throws IOException- Throws:
IOException
-
getBitOffset
int getBitOffset() throws IOException- Throws:
IOException
-
setBitOffset
void setBitOffset(int bitOffset) throws IOException- Throws:
IOException
-
readBit
int readBit() throws IOException- Throws:
IOException
-
readBits
long readBits(int numBits) throws IOException- Throws:
IOException
-
length
long length() throws IOException- Throws:
IOException
-
skipBytes
int skipBytes(int n) throws IOException- Specified by:
skipBytesin interfaceDataInput- Throws:
IOException
-
skipBytes
long skipBytes(long n) throws IOException- Throws:
IOException
-
seek
void seek(long pos) throws IOException
- Throws:
IOException
-
mark
void mark()
-
reset
void reset() throws IOException- Throws:
IOException
-
flushBefore
void flushBefore(long pos) throws IOException- Throws:
IOException
-
flush
void flush() throws IOException- Throws:
IOException
-
getFlushedPosition
long getFlushedPosition()
-
isCached
boolean isCached()
-
isCachedMemory
boolean isCachedMemory()
-
isCachedFile
boolean isCachedFile()
-
close
void close() throws IOException- Throws:
IOException
-
-