Ja.NET Standard Edition 5.0

Documentation API Specification

Contents

ImageInputStreamImpl Class Reference

Inherits javax::imageio::stream::ImageInputStream.

Inherited by FileCacheImageInputStream, FileImageInputStream, ImageOutputStreamImpl, and MemoryCacheImageInputStream.

List of all members.


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

Constructor & Destructor Documentation


Member Function Documentation

final void checkClosed (  )  throws IOException [protected]

void setByteOrder ( ByteOrder  byteOrder  ) 

Implements ImageInputStream.

ByteOrder getByteOrder (  ) 

Implements ImageInputStream.

abstract int read (  )  throws IOException [pure virtual]

int read ( byte[]  b  )  throws IOException

Implements ImageInputStream.

abstract int read ( byte[]  b,
int  off,
int  len 
) throws IOException [pure virtual]

void readBytes ( IIOByteBuffer  buf,
int  len 
) throws IOException

Implements ImageInputStream.

boolean readBoolean (  )  throws IOException [virtual]

Reads a boolean from this stream.

Returns:
the next boolean value from the source stream.
Exceptions:
IOException If a problem occurs reading from this stream.
See also:
DataOutput.writeBoolean(boolean)

Implements ImageInputStream.

byte readByte (  )  throws IOException [virtual]

Reads an 8-bit byte value from this stream.

Returns:
the next byte value from the source stream.
Exceptions:
IOException If a problem occurs reading from this stream.
See also:
DataOutput.writeByte(int)

Implements ImageInputStream.

int readUnsignedByte (  )  throws IOException [virtual]

Reads an unsigned 8-bit byte value from this stream and returns it as an int.

Returns:
the next unsigned byte value from the source stream.
Exceptions:
IOException If a problem occurs reading from this stream.
See also:
DataOutput.writeByte(int)

Implements ImageInputStream.

short readShort (  )  throws IOException [virtual]

Reads a 16-bit short value from this stream.

Returns:
the next short value from the source stream.
Exceptions:
IOException If a problem occurs reading from this stream.
See also:
DataOutput.writeShort(int)

Implements ImageInputStream.

int readUnsignedShort (  )  throws IOException [virtual]

Reads a 16-bit unsigned short value from this stream and returns it as an int.

Returns:
the next unsigned short value from the source stream.
Exceptions:
IOException If a problem occurs reading from this stream.
See also:
DataOutput.writeShort(int)

Implements ImageInputStream.

char readChar (  )  throws IOException [virtual]

Reads a 16-bit character value from this stream.

Returns:
the next char value from the source stream.
Exceptions:
IOException If a problem occurs reading from this stream.
See also:
DataOutput.writeChar(int)

Implements ImageInputStream.

int readInt (  )  throws IOException [virtual]

Reads a 32-bit integer value from this stream.

Returns:
the next int value from the source stream.
Exceptions:
IOException If a problem occurs reading from this stream.
See also:
DataOutput.writeInt(int)

Implements ImageInputStream.

long readUnsignedInt (  )  throws IOException

Implements ImageInputStream.

long readLong (  )  throws IOException [virtual]

Reads a 64-bit long value from this stream.

Returns:
the next long value from the source stream.
Exceptions:
IOException If a problem occurs reading from this stream.
See also:
DataOutput.writeLong(long)

Implements ImageInputStream.

float readFloat (  )  throws IOException [virtual]

Reads a 32-bit float value from this stream.

Returns:
the next float value from the source stream.
Exceptions:
IOException If a problem occurs reading from this stream.
See also:
DataOutput.writeFloat(float)

Implements ImageInputStream.

double readDouble (  )  throws IOException [virtual]

Reads a 64-bit double value from this stream.

Returns:
the next double value from the source stream.
Exceptions:
IOException If a problem occurs reading from this stream.
See also:
DataOutput.writeDouble(double)

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.

Returns:
the contents of the line or null if no characters were read before end of stream.
Exceptions:
IOException If a problem occurs reading from this stream.

Implements ImageInputStream.

String readUTF (  )  throws IOException [virtual]

Reads a UTF format String from this Stream.

Returns:
the next UTF String from the source stream.
Exceptions:
IOException If a problem occurs reading from this stream.
See also:
DataOutput.writeUTF(java.lang.String)

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.

Parameters:
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.
Exceptions:
IOException If a problem occurs reading from this stream.
See also:
DataOutput.write(byte[])

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.

Parameters:
buffer the buffer to read bytes into
Exceptions:
IOException If a problem occurs reading from this stream.
See also:
DataOutput.write(byte[])

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 (  ) 

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.

Parameters:
count the number of bytes to skip.
Returns:
the number of bytes actually skipped.
Exceptions:
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

void mark (  ) 

Implements ImageInputStream.

void reset (  )  throws IOException

Implements ImageInputStream.

void flushBefore ( long  pos  )  throws IOException

void flush (  )  throws IOException

Implements ImageInputStream.

long getFlushedPosition (  ) 

Implements ImageInputStream.

boolean isCached (  ) 

boolean isCachedMemory (  ) 

boolean isCachedFile (  ) 

void close (  )  throws IOException

void finalize (  )  throws Throwable [protected]


Member Data Documentation

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]