org.objectweb.carol.irmi
Class ObjectInputList

java.lang.Object
  extended by org.objectweb.carol.irmi.ObjectInputList
All Implemented Interfaces:
DataInput, ObjectInput

public class ObjectInputList
extends Object
implements ObjectInput

ObjectInputList implements the ObjectInput interface, but rather than deserializing objects from an InputStream, this implementation reads objects from a list created using ObjectOutputList. This class is used in concert with ObjectOutputList in order to provide support for the deprecated RemoteCall interface required by early versions of RMI.

Author:
Rafael H. Schloming <rhs@mit.edu>

Constructor Summary
ObjectInputList(List list)
          Creates a new ObjectInputList instance that reads from the given List.
 
Method Summary
 int available()
          UNSUPPORTED
 void close()
           
 int read()
          UNSUPPORTED
 int read(byte[] b)
          UNSUPPORTED
 int read(byte[] b, int off, int len)
          UNSUPPORTED
 boolean readBoolean()
           
 byte readByte()
           
 char readChar()
           
 double readDouble()
           
 float readFloat()
           
 void readFully(byte[] b)
          UNSUPPORTED
 void readFully(byte[] b, int off, int len)
          UNSUPPORTED
 int readInt()
           
 String readLine()
           
 long readLong()
           
 Object readObject()
           
 short readShort()
           
 int readUnsignedByte()
           
 int readUnsignedShort()
           
 String readUTF()
           
 long skip(long b)
          UNSUPPORTED
 int skipBytes(int b)
          UNSUPPORTED
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectInputList

public ObjectInputList(List list)
Creates a new ObjectInputList instance that reads from the given List. This list should have been generated using ObjectOutputList.

Parameters:
list - the list to use for input
Method Detail

readObject

public Object readObject()
Specified by:
readObject in interface ObjectInput

readUTF

public String readUTF()
Specified by:
readUTF in interface DataInput

readLine

public String readLine()
Specified by:
readLine in interface DataInput

readBoolean

public boolean readBoolean()
Specified by:
readBoolean in interface DataInput

readShort

public short readShort()
Specified by:
readShort in interface DataInput

readLong

public long readLong()
Specified by:
readLong in interface DataInput

readUnsignedShort

public int readUnsignedShort()
Specified by:
readUnsignedShort in interface DataInput

readUnsignedByte

public int readUnsignedByte()
Specified by:
readUnsignedByte in interface DataInput

readInt

public int readInt()
Specified by:
readInt in interface DataInput

readFloat

public float readFloat()
Specified by:
readFloat in interface DataInput

readDouble

public double readDouble()
Specified by:
readDouble in interface DataInput

readChar

public char readChar()
Specified by:
readChar in interface DataInput

readByte

public byte readByte()
Specified by:
readByte in interface DataInput

available

public int available()
UNSUPPORTED

Specified by:
available in interface ObjectInput
Throws:
UnsupportedOperationException

readFully

public void readFully(byte[] b,
                      int off,
                      int len)
UNSUPPORTED

Specified by:
readFully in interface DataInput
Throws:
UnsupportedOperationException

readFully

public void readFully(byte[] b)
UNSUPPORTED

Specified by:
readFully in interface DataInput
Throws:
UnsupportedOperationException

read

public int read(byte[] b,
                int off,
                int len)
UNSUPPORTED

Specified by:
read in interface ObjectInput
Throws:
UnsupportedOperationException

read

public int read(byte[] b)
UNSUPPORTED

Specified by:
read in interface ObjectInput
Throws:
UnsupportedOperationException

read

public int read()
UNSUPPORTED

Specified by:
read in interface ObjectInput
Throws:
UnsupportedOperationException

skip

public long skip(long b)
UNSUPPORTED

Specified by:
skip in interface ObjectInput
Throws:
UnsupportedOperationException

skipBytes

public int skipBytes(int b)
UNSUPPORTED

Specified by:
skipBytes in interface DataInput
Throws:
UnsupportedOperationException

close

public void close()
Specified by:
close in interface ObjectInput