org.objectweb.carol.irmi
Class ObjectInputList

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

public class ObjectInputList
extends java.lang.Object
implements java.io.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(java.util.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()
           
 java.lang.String readLine()
           
 long readLong()
           
 java.lang.Object readObject()
           
 short readShort()
           
 int readUnsignedByte()
           
 int readUnsignedShort()
           
 java.lang.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(java.util.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 java.lang.Object readObject()
Specified by:
readObject in interface java.io.ObjectInput

readUTF

public java.lang.String readUTF()
Specified by:
readUTF in interface java.io.DataInput

readLine

public java.lang.String readLine()
Specified by:
readLine in interface java.io.DataInput

readBoolean

public boolean readBoolean()
Specified by:
readBoolean in interface java.io.DataInput

readShort

public short readShort()
Specified by:
readShort in interface java.io.DataInput

readLong

public long readLong()
Specified by:
readLong in interface java.io.DataInput

readUnsignedShort

public int readUnsignedShort()
Specified by:
readUnsignedShort in interface java.io.DataInput

readUnsignedByte

public int readUnsignedByte()
Specified by:
readUnsignedByte in interface java.io.DataInput

readInt

public int readInt()
Specified by:
readInt in interface java.io.DataInput

readFloat

public float readFloat()
Specified by:
readFloat in interface java.io.DataInput

readDouble

public double readDouble()
Specified by:
readDouble in interface java.io.DataInput

readChar

public char readChar()
Specified by:
readChar in interface java.io.DataInput

readByte

public byte readByte()
Specified by:
readByte in interface java.io.DataInput

available

public int available()
UNSUPPORTED

Specified by:
available in interface java.io.ObjectInput
Throws:
java.lang.UnsupportedOperationException

readFully

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

Specified by:
readFully in interface java.io.DataInput
Throws:
java.lang.UnsupportedOperationException

readFully

public void readFully(byte[] b)
UNSUPPORTED

Specified by:
readFully in interface java.io.DataInput
Throws:
java.lang.UnsupportedOperationException

read

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

Specified by:
read in interface java.io.ObjectInput
Throws:
java.lang.UnsupportedOperationException

read

public int read(byte[] b)
UNSUPPORTED

Specified by:
read in interface java.io.ObjectInput
Throws:
java.lang.UnsupportedOperationException

read

public int read()
UNSUPPORTED

Specified by:
read in interface java.io.ObjectInput
Throws:
java.lang.UnsupportedOperationException

skip

public long skip(long b)
UNSUPPORTED

Specified by:
skip in interface java.io.ObjectInput
Throws:
java.lang.UnsupportedOperationException

skipBytes

public int skipBytes(int b)
UNSUPPORTED

Specified by:
skipBytes in interface java.io.DataInput
Throws:
java.lang.UnsupportedOperationException

close

public void close()
Specified by:
close in interface java.io.ObjectInput