Class ImageInputStreamImpl
- java.lang.Object
-
- com.tom_roush.harmony.javax.imageio.stream.ImageInputStreamImpl
-
- All Implemented Interfaces:
ImageInputStream,DataInput
- Direct Known Subclasses:
ImageOutputStreamImpl,MemoryCacheImageInputStream
public abstract class ImageInputStreamImpl extends Object implements ImageInputStream
-
-
Field Summary
Fields Modifier and Type Field Description protected intbitOffsetprotected ByteOrderbyteOrderprotected longflushedPosprotected longstreamPos
-
Constructor Summary
Constructors Constructor Description ImageInputStreamImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcheckClosed()voidclose()protected voidfinalize()voidflush()voidflushBefore(long pos)intgetBitOffset()ByteOrdergetByteOrder()longgetFlushedPosition()longgetStreamPosition()booleanisCached()booleanisCachedFile()booleanisCachedMemory()longlength()voidmark()abstract intread()intread(byte[] b)abstract 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)
-
-
-
Field Detail
-
byteOrder
protected ByteOrder byteOrder
-
streamPos
protected long streamPos
-
flushedPos
protected long flushedPos
-
bitOffset
protected int bitOffset
-
-
Method Detail
-
checkClosed
protected final void checkClosed() throws IOException- Throws:
IOException
-
setByteOrder
public void setByteOrder(ByteOrder byteOrder)
- Specified by:
setByteOrderin interfaceImageInputStream
-
getByteOrder
public ByteOrder getByteOrder()
- Specified by:
getByteOrderin interfaceImageInputStream
-
read
public abstract int read() throws IOException- Specified by:
readin interfaceImageInputStream- Throws:
IOException
-
read
public int read(byte[] b) throws IOException- Specified by:
readin interfaceImageInputStream- Throws:
IOException
-
read
public abstract int read(byte[] b, int off, int len) throws IOException- Specified by:
readin interfaceImageInputStream- Throws:
IOException
-
readBytes
public void readBytes(IIOByteBuffer buf, int len) throws IOException
- Specified by:
readBytesin interfaceImageInputStream- Throws:
IOException
-
readBoolean
public boolean readBoolean() throws IOException- Specified by:
readBooleanin interfaceDataInput- Specified by:
readBooleanin interfaceImageInputStream- Throws:
IOException
-
readByte
public byte readByte() throws IOException- Specified by:
readBytein interfaceDataInput- Specified by:
readBytein interfaceImageInputStream- Throws:
IOException
-
readUnsignedByte
public int readUnsignedByte() throws IOException- Specified by:
readUnsignedBytein interfaceDataInput- Specified by:
readUnsignedBytein interfaceImageInputStream- Throws:
IOException
-
readShort
public short readShort() throws IOException- Specified by:
readShortin interfaceDataInput- Specified by:
readShortin interfaceImageInputStream- Throws:
IOException
-
readUnsignedShort
public int readUnsignedShort() throws IOException- Specified by:
readUnsignedShortin interfaceDataInput- Specified by:
readUnsignedShortin interfaceImageInputStream- Throws:
IOException
-
readChar
public char readChar() throws IOException- Specified by:
readCharin interfaceDataInput- Specified by:
readCharin interfaceImageInputStream- Throws:
IOException
-
readInt
public int readInt() throws IOException- Specified by:
readIntin interfaceDataInput- Specified by:
readIntin interfaceImageInputStream- Throws:
IOException
-
readUnsignedInt
public long readUnsignedInt() throws IOException- Specified by:
readUnsignedIntin interfaceImageInputStream- Throws:
IOException
-
readLong
public long readLong() throws IOException- Specified by:
readLongin interfaceDataInput- Specified by:
readLongin interfaceImageInputStream- Throws:
IOException
-
readFloat
public float readFloat() throws IOException- Specified by:
readFloatin interfaceDataInput- Specified by:
readFloatin interfaceImageInputStream- Throws:
IOException
-
readDouble
public double readDouble() throws IOException- Specified by:
readDoublein interfaceDataInput- Specified by:
readDoublein interfaceImageInputStream- Throws:
IOException
-
readLine
public String readLine() throws IOException
- Specified by:
readLinein interfaceDataInput- Specified by:
readLinein interfaceImageInputStream- Throws:
IOException
-
readUTF
public String readUTF() throws IOException
- Specified by:
readUTFin interfaceDataInput- Specified by:
readUTFin interfaceImageInputStream- Throws:
IOException
-
readFully
public void readFully(byte[] b, int off, int len) throws IOException- Specified by:
readFullyin interfaceDataInput- Specified by:
readFullyin interfaceImageInputStream- Throws:
IOException
-
readFully
public void readFully(byte[] b) throws IOException- Specified by:
readFullyin interfaceDataInput- Specified by:
readFullyin interfaceImageInputStream- Throws:
IOException
-
readFully
public void readFully(short[] s, int off, int len) throws IOException- Specified by:
readFullyin interfaceImageInputStream- Throws:
IOException
-
readFully
public void readFully(char[] c, int off, int len) throws IOException- Specified by:
readFullyin interfaceImageInputStream- Throws:
IOException
-
readFully
public void readFully(int[] i, int off, int len) throws IOException- Specified by:
readFullyin interfaceImageInputStream- Throws:
IOException
-
readFully
public void readFully(long[] l, int off, int len) throws IOException- Specified by:
readFullyin interfaceImageInputStream- Throws:
IOException
-
readFully
public void readFully(float[] f, int off, int len) throws IOException- Specified by:
readFullyin interfaceImageInputStream- Throws:
IOException
-
readFully
public void readFully(double[] d, int off, int len) throws IOException- Specified by:
readFullyin interfaceImageInputStream- Throws:
IOException
-
getStreamPosition
public long getStreamPosition() throws IOException- Specified by:
getStreamPositionin interfaceImageInputStream- Throws:
IOException
-
getBitOffset
public int getBitOffset() throws IOException- Specified by:
getBitOffsetin interfaceImageInputStream- Throws:
IOException
-
setBitOffset
public void setBitOffset(int bitOffset) throws IOException- Specified by:
setBitOffsetin interfaceImageInputStream- Throws:
IOException
-
readBit
public int readBit() throws IOException- Specified by:
readBitin interfaceImageInputStream- Throws:
IOException
-
readBits
public long readBits(int numBits) throws IOException- Specified by:
readBitsin interfaceImageInputStream- Throws:
IOException
-
length
public long length()
- Specified by:
lengthin interfaceImageInputStream
-
skipBytes
public int skipBytes(int n) throws IOException- Specified by:
skipBytesin interfaceDataInput- Specified by:
skipBytesin interfaceImageInputStream- Throws:
IOException
-
skipBytes
public long skipBytes(long n) throws IOException- Specified by:
skipBytesin interfaceImageInputStream- Throws:
IOException
-
seek
public void seek(long pos) throws IOException- Specified by:
seekin interfaceImageInputStream- Throws:
IOException
-
mark
public void mark()
- Specified by:
markin interfaceImageInputStream
-
reset
public void reset() throws IOException- Specified by:
resetin interfaceImageInputStream- Throws:
IOException
-
flushBefore
public void flushBefore(long pos) throws IOException- Specified by:
flushBeforein interfaceImageInputStream- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceImageInputStream- Throws:
IOException
-
getFlushedPosition
public long getFlushedPosition()
- Specified by:
getFlushedPositionin interfaceImageInputStream
-
isCached
public boolean isCached()
- Specified by:
isCachedin interfaceImageInputStream
-
isCachedMemory
public boolean isCachedMemory()
- Specified by:
isCachedMemoryin interfaceImageInputStream
-
isCachedFile
public boolean isCachedFile()
- Specified by:
isCachedFilein interfaceImageInputStream
-
close
public void close() throws IOException- Specified by:
closein interfaceImageInputStream- Throws:
IOException
-
-