![]() |
|
Contents |
Inherited by FileCacheImageInputStream, FileImageInputStream, ImageOutputStreamImpl, and MemoryCacheImageInputStream.
Public Member Functions | |
| ImageInputStreamImpl () | |
| void | setByteOrder (ByteOrder byteOrder) |
| ByteOrder | getByteOrder () |
| abstract int | read () throws IOException |
| int | read (byte[] b) throws IOException |
| abstract int | read (byte[] b, int off, int len) throws IOException |
| void | readBytes (IIOByteBuffer buf, int len) throws IOException |
| boolean | readBoolean () throws IOException |
| Reads a boolean from this stream. | |
| byte | readByte () throws IOException |
| Reads an 8-bit byte value from this stream. | |
| int | readUnsignedByte () throws IOException |
Reads an unsigned 8-bit byte value from this stream and returns it as an int. | |
| short | readShort () throws IOException |
Reads a 16-bit short value from this stream. | |
| int | readUnsignedShort () throws IOException |
Reads a 16-bit unsigned short value from this stream and returns it as an int. | |
| char | readChar () throws IOException |
| Reads a 16-bit character value from this stream. | |
| int | readInt () throws IOException |
| Reads a 32-bit integer value from this stream. | |
| long | readUnsignedInt () throws IOException |
| long | readLong () throws IOException |
Reads a 64-bit long value from this stream. | |
| float | readFloat () throws IOException |
Reads a 32-bit float value from this stream. | |
| double | readDouble () throws IOException |
Reads a 64-bit double value from this stream. | |
| String | readLine () throws IOException |
Answers a String representing the next line of text available in this BufferedReader. | |
| String | readUTF () throws IOException |
| Reads a UTF format String from this Stream. | |
| void | readFully (byte[] b, int off, int len) throws IOException |
Read bytes from this stream and stores them in byte array buffer starting at offset offset. | |
| void | readFully (byte[] b) throws IOException |
Reads bytes from this stream into the byte array buffer. | |
| void | readFully (short[] s, int off, int len) throws IOException |
| void | readFully (char[] c, int off, int len) throws IOException |
| void | readFully (int[] i, int off, int len) throws IOException |
| void | readFully (long[] l, int off, int len) throws IOException |
| void | readFully (float[] f, int off, int len) throws IOException |
| void | readFully (double[] d, int off, int len) throws IOException |
| long | getStreamPosition () throws IOException |
| int | getBitOffset () throws IOException |
| void | setBitOffset (int bitOffset) throws IOException |
| int | readBit () throws IOException |
| long | readBits (int numBits) throws IOException |
| long | length () |
| int | skipBytes (int n) throws IOException |
Skips count number of bytes in this stream. | |
| long | skipBytes (long n) throws IOException |
| void | seek (long pos) throws IOException |
| void | mark () |
| void | reset () throws IOException |
| void | flushBefore (long pos) throws IOException |
| void | flush () throws IOException |
| long | getFlushedPosition () |
| boolean | isCached () |
| boolean | isCachedMemory () |
| boolean | isCachedFile () |
| void | close () throws IOException |
Protected Member Functions | |
| final void | checkClosed () throws IOException |
| void | finalize () throws Throwable |
Protected Attributes | |
| ByteOrder | byteOrder = ByteOrder.BIG_ENDIAN |
| long | streamPos = 0 |
| long | flushedPos = 0 |
| int | bitOffset = 0 |
Package Attributes | |
| int | currentByte |
Private Attributes | |
| boolean | closed = false |
| final PositionStack | posStack = new PositionStack() |
| final byte[] | buff = new byte[8] |
Classes | |
| class | PositionStack |
| final void checkClosed | ( | ) | throws IOException [protected] |
| void setByteOrder | ( | ByteOrder | byteOrder | ) |
Implements ImageInputStream.
| ByteOrder getByteOrder | ( | ) |
Implements ImageInputStream.
| abstract int read | ( | ) | throws IOException [pure virtual] |
Implements ImageInputStream.
Implemented in FileCacheImageInputStream, FileCacheImageOutputStream, FileImageInputStream, FileImageOutputStream, MemoryCacheImageInputStream, and MemoryCacheImageOutputStream.
| int read | ( | byte[] | b | ) | throws IOException |
Implements ImageInputStream.
| abstract int read | ( | byte[] | b, | |
| int | off, | |||
| int | len | |||
| ) | throws IOException [pure virtual] |
Implements ImageInputStream.
Implemented in FileCacheImageInputStream, FileCacheImageOutputStream, FileImageInputStream, FileImageOutputStream, MemoryCacheImageInputStream, and MemoryCacheImageOutputStream.
| void readBytes | ( | IIOByteBuffer | buf, | |
| int | len | |||
| ) | throws IOException |
Implements ImageInputStream.
| boolean readBoolean | ( | ) | throws IOException [virtual] |
Reads a boolean from this stream.
| IOException | If a problem occurs reading from this stream. |
Implements ImageInputStream.
| byte readByte | ( | ) | throws IOException [virtual] |
Reads an 8-bit byte value from this stream.
| IOException | If a problem occurs reading from this stream. |
Implements ImageInputStream.
| int readUnsignedByte | ( | ) | throws IOException [virtual] |
Reads an unsigned 8-bit byte value from this stream and returns it as an int.
| IOException | If a problem occurs reading from this stream. |
Implements ImageInputStream.
| short readShort | ( | ) | throws IOException [virtual] |
Reads a 16-bit short value from this stream.
short value from the source stream.| IOException | If a problem occurs reading from this stream. |
Implements ImageInputStream.
| int readUnsignedShort | ( | ) | throws IOException [virtual] |
Reads a 16-bit unsigned short value from this stream and returns it as an int.
short value from the source stream.| IOException | If a problem occurs reading from this stream. |
Implements ImageInputStream.
| char readChar | ( | ) | throws IOException [virtual] |
Reads a 16-bit character value from this stream.
char value from the source stream.| IOException | If a problem occurs reading from this stream. |
Implements ImageInputStream.
| int readInt | ( | ) | throws IOException [virtual] |
Reads a 32-bit integer value from this stream.
int value from the source stream.| IOException | If a problem occurs reading from this stream. |
Implements ImageInputStream.
| long readUnsignedInt | ( | ) | throws IOException |
Implements ImageInputStream.
| long readLong | ( | ) | throws IOException [virtual] |
Reads a 64-bit long value from this stream.
long value from the source stream.| IOException | If a problem occurs reading from this stream. |
Implements ImageInputStream.
| float readFloat | ( | ) | throws IOException [virtual] |
Reads a 32-bit float value from this stream.
float value from the source stream.| IOException | If a problem occurs reading from this stream. |
Implements ImageInputStream.
| double readDouble | ( | ) | throws IOException [virtual] |
Reads a 64-bit double value from this stream.
double value from the source stream.| IOException | If a problem occurs reading from this stream. |
Implements ImageInputStream.
| String readLine | ( | ) | throws IOException [virtual] |
Answers a String representing the next line of text available in this BufferedReader.
A line is represented by 0 or more characters followed by ',
''', "\n\r" or end of stream. The String does not include the newline sequence.
| IOException | If a problem occurs reading from this stream. |
Implements ImageInputStream.
| String readUTF | ( | ) | throws IOException [virtual] |
Reads a UTF format String from this Stream.
| IOException | If a problem occurs reading from this stream. |
Implements ImageInputStream.
| void readFully | ( | byte[] | buffer, | |
| int | offset, | |||
| int | count | |||
| ) | throws IOException [virtual] |
Read bytes from this stream and stores them in byte array buffer starting at offset offset.
This method blocks until count number of bytes have been read.
| buffer | the byte array in which to store the read bytes. | |
| offset | the offset in buffer to store the read bytes. | |
| count | the maximum number of bytes to store in buffer. |
| IOException | If a problem occurs reading from this stream. |
DataOutput.write(byte[], int, int)
Implements ImageInputStream.
| void readFully | ( | byte[] | buffer | ) | throws IOException [virtual] |
Reads bytes from this stream into the byte array buffer.
This method will block until buffer.length number of bytes have been read.
| buffer | the buffer to read bytes into |
| IOException | If a problem occurs reading from this stream. |
DataOutput.write(byte[], int, int)
Implements ImageInputStream.
| void readFully | ( | short[] | s, | |
| int | off, | |||
| int | len | |||
| ) | throws IOException |
Implements ImageInputStream.
| void readFully | ( | char[] | c, | |
| int | off, | |||
| int | len | |||
| ) | throws IOException |
Implements ImageInputStream.
| void readFully | ( | int[] | i, | |
| int | off, | |||
| int | len | |||
| ) | throws IOException |
Implements ImageInputStream.
| void readFully | ( | long[] | l, | |
| int | off, | |||
| int | len | |||
| ) | throws IOException |
Implements ImageInputStream.
| void readFully | ( | float[] | f, | |
| int | off, | |||
| int | len | |||
| ) | throws IOException |
Implements ImageInputStream.
| void readFully | ( | double[] | d, | |
| int | off, | |||
| int | len | |||
| ) | throws IOException |
Implements ImageInputStream.
| long getStreamPosition | ( | ) | throws IOException |
Implements ImageInputStream.
| int getBitOffset | ( | ) | throws IOException |
Implements ImageInputStream.
| void setBitOffset | ( | int | bitOffset | ) | throws IOException |
Implements ImageInputStream.
| int readBit | ( | ) | throws IOException |
Implements ImageInputStream.
| long readBits | ( | int | numBits | ) | throws IOException |
Implements ImageInputStream.
| long length | ( | ) |
Implements ImageInputStream.
Reimplemented in FileCacheImageOutputStream, FileImageInputStream, FileImageOutputStream, and MemoryCacheImageOutputStream.
| int skipBytes | ( | int | count | ) | throws IOException [virtual] |
Skips count number of bytes in this stream.
Subsequent read()'s will not return these bytes unless reset() is used.
| count | the number of bytes to skip. |
| IOException | If a problem occurs reading from this stream. |
Implements ImageInputStream.
| long skipBytes | ( | long | n | ) | throws IOException |
Implements ImageInputStream.
| void seek | ( | long | pos | ) | throws IOException |
Implements ImageInputStream.
Reimplemented in FileCacheImageOutputStream, FileImageInputStream, and FileImageOutputStream.
| void mark | ( | ) |
Implements ImageInputStream.
| void reset | ( | ) | throws IOException |
Implements ImageInputStream.
| void flushBefore | ( | long | pos | ) | throws IOException |
Implements ImageInputStream.
Reimplemented in FileCacheImageOutputStream, MemoryCacheImageInputStream, and MemoryCacheImageOutputStream.
| void flush | ( | ) | throws IOException |
Implements ImageInputStream.
| long getFlushedPosition | ( | ) |
Implements ImageInputStream.
| boolean isCached | ( | ) |
Implements ImageInputStream.
Reimplemented in FileCacheImageInputStream, FileCacheImageOutputStream, MemoryCacheImageInputStream, and MemoryCacheImageOutputStream.
| boolean isCachedMemory | ( | ) |
Implements ImageInputStream.
Reimplemented in FileCacheImageInputStream, FileCacheImageOutputStream, MemoryCacheImageInputStream, and MemoryCacheImageOutputStream.
| boolean isCachedFile | ( | ) |
Implements ImageInputStream.
Reimplemented in FileCacheImageInputStream, FileCacheImageOutputStream, MemoryCacheImageInputStream, and MemoryCacheImageOutputStream.
| void close | ( | ) | throws IOException |
Implements ImageInputStream.
Reimplemented in FileCacheImageInputStream, FileCacheImageOutputStream, FileImageInputStream, FileImageOutputStream, MemoryCacheImageInputStream, and MemoryCacheImageOutputStream.
| void finalize | ( | ) | throws Throwable [protected] |
ByteOrder byteOrder = ByteOrder.BIG_ENDIAN [protected] |
long streamPos = 0 [protected] |
long flushedPos = 0 [protected] |
int bitOffset = 0 [protected] |
boolean closed = false [private] |
final PositionStack posStack = new PositionStack() [private] |
final byte [] buff = new byte[8] [private] |
Reimplemented in ImageOutputStreamImpl.
int currentByte [package] |