ibis.mpj
Class StoreArrayInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by ibis.io.DataInputStream
          extended by ibis.mpj.StoreArrayInputStream
All Implemented Interfaces:
ibis.io.DataInput, Closeable

public class StoreArrayInputStream
extends ibis.io.DataInputStream

Extends InputStream with read of array of primitives and readSingleInt


Constructor Summary
StoreArrayInputStream(ibis.mpj.StoreBuffer buf)
           
 
Method Summary
 int available()
           
 int bufferSize()
           
 long bytesRead()
           
 void close()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 void readArray(boolean[] a, int off, int len)
           
 void readArray(byte[] a, int off, int len)
           
 void readArray(char[] a, int off, int len)
           
 void readArray(double[] a, int off, int len)
           
 void readArray(float[] a, int off, int len)
           
 void readArray(int[] a, int off, int len)
           
 void readArray(long[] a, int off, int len)
           
 void readArray(short[] a, int off, int len)
           
 boolean readBoolean()
           
 byte readByte()
           
 char readChar()
           
 double readDouble()
           
 float readFloat()
           
 int readInt()
           
 long readLong()
           
 short readShort()
           
 void reset()
           
 void resetBytesRead()
           
 
Methods inherited from class ibis.io.DataInputStream
readArray, readArray, readArray, readArray, readArray, readArray, readArray, readArray, readUnsignedByte, readUnsignedShort
 
Methods inherited from class java.io.InputStream
mark, markSupported, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreArrayInputStream

public StoreArrayInputStream(ibis.mpj.StoreBuffer buf)
Method Detail

bufferSize

public int bufferSize()
Specified by:
bufferSize in class ibis.io.DataInputStream

reset

public void reset()
Overrides:
reset in class InputStream

readByte

public byte readByte()

readBoolean

public boolean readBoolean()
Specified by:
readBoolean in interface ibis.io.DataInput
Specified by:
readBoolean in class ibis.io.DataInputStream

readChar

public char readChar()

readShort

public short readShort()

readInt

public int readInt()

readLong

public long readLong()

readFloat

public float readFloat()

readDouble

public double readDouble()

readArray

public void readArray(boolean[] a,
                      int off,
                      int len)

readArray

public void readArray(byte[] a,
                      int off,
                      int len)

readArray

public void readArray(short[] a,
                      int off,
                      int len)

readArray

public void readArray(char[] a,
                      int off,
                      int len)

readArray

public void readArray(int[] a,
                      int off,
                      int len)

readArray

public void readArray(long[] a,
                      int off,
                      int len)

readArray

public void readArray(float[] a,
                      int off,
                      int len)

readArray

public void readArray(double[] a,
                      int off,
                      int len)

read

public int read()
Specified by:
read in class InputStream

read

public int read(byte[] b)
Overrides:
read in class InputStream

read

public int read(byte[] b,
                int off,
                int len)
Overrides:
read in class InputStream

bytesRead

public long bytesRead()
Specified by:
bytesRead in class ibis.io.DataInputStream

resetBytesRead

public void resetBytesRead()
Specified by:
resetBytesRead in class ibis.io.DataInputStream

available

public int available()
              throws IOException
Overrides:
available in class InputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class ibis.io.DataInputStream
Throws:
IOException


The Ibis project