org.objectweb.carol.irmi
Class ObjectOutputList

java.lang.Object
  extended byorg.objectweb.carol.irmi.ObjectOutputList
All Implemented Interfaces:
DataOutput, ObjectOutput

public class ObjectOutputList
extends Object
implements ObjectOutput

ObjectOutputList implements the ObjectOutput interface, but rather than serializing objects to an OutputStream, this implementation appends to a list. This class is used in concert with ObjectInputList 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
ObjectOutputList(List list)
          Constructs a new ObjectOutputList that appends its output to the given list.
 
Method Summary
 void close()
           
 void flush()
           
 void write(byte[] b)
          UNSUPPORTED
 void write(byte[] b, int off, int len)
          UNSUPPORTED
 void write(int b)
          UNSUPPORTED
 void writeBoolean(boolean b)
           
 void writeByte(int b)
           
 void writeBytes(String str)
           
 void writeChar(int c)
           
 void writeChars(String str)
           
 void writeDouble(double d)
           
 void writeFloat(float f)
           
 void writeInt(int i)
           
 void writeLong(long l)
           
 void writeObject(Object obj)
           
 void writeShort(int s)
           
 void writeUTF(String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectOutputList

public ObjectOutputList(List list)
Constructs a new ObjectOutputList that appends its output to the given list.

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

writeObject

public void writeObject(Object obj)
Specified by:
writeObject in interface ObjectOutput

writeUTF

public void writeUTF(String str)
Specified by:
writeUTF in interface DataOutput

writeChars

public void writeChars(String str)
Specified by:
writeChars in interface DataOutput

writeBytes

public void writeBytes(String str)
Specified by:
writeBytes in interface DataOutput

writeBoolean

public void writeBoolean(boolean b)
Specified by:
writeBoolean in interface DataOutput

writeLong

public void writeLong(long l)
Specified by:
writeLong in interface DataOutput

writeShort

public void writeShort(int s)
Specified by:
writeShort in interface DataOutput

writeInt

public void writeInt(int i)
Specified by:
writeInt in interface DataOutput

writeChar

public void writeChar(int c)
Specified by:
writeChar in interface DataOutput

writeByte

public void writeByte(int b)
Specified by:
writeByte in interface DataOutput

writeFloat

public void writeFloat(float f)
Specified by:
writeFloat in interface DataOutput

writeDouble

public void writeDouble(double d)
Specified by:
writeDouble in interface DataOutput

write

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

Specified by:
write in interface ObjectOutput
Throws:
UnsupportedOperationException

write

public void write(byte[] b)
UNSUPPORTED

Specified by:
write in interface ObjectOutput
Throws:
UnsupportedOperationException

write

public void write(int b)
UNSUPPORTED

Specified by:
write in interface ObjectOutput
Throws:
UnsupportedOperationException

flush

public void flush()
Specified by:
flush in interface ObjectOutput

close

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