org.objectweb.carol.irmi
Class ObjectOutputList

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

public class ObjectOutputList
extends java.lang.Object
implements java.io.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(java.util.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(java.lang.String str)
           
 void writeChar(int c)
           
 void writeChars(java.lang.String str)
           
 void writeDouble(double d)
           
 void writeFloat(float f)
           
 void writeInt(int i)
           
 void writeLong(long l)
           
 void writeObject(java.lang.Object obj)
           
 void writeShort(int s)
           
 void writeUTF(java.lang.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(java.util.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(java.lang.Object obj)
Specified by:
writeObject in interface java.io.ObjectOutput

writeUTF

public void writeUTF(java.lang.String str)
Specified by:
writeUTF in interface java.io.DataOutput

writeChars

public void writeChars(java.lang.String str)
Specified by:
writeChars in interface java.io.DataOutput

writeBytes

public void writeBytes(java.lang.String str)
Specified by:
writeBytes in interface java.io.DataOutput

writeBoolean

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

writeLong

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

writeShort

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

writeInt

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

writeChar

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

writeByte

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

writeFloat

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

writeDouble

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

write

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

Specified by:
write in interface java.io.DataOutput
Specified by:
write in interface java.io.ObjectOutput
Throws:
java.lang.UnsupportedOperationException

write

public void write(byte[] b)
UNSUPPORTED

Specified by:
write in interface java.io.DataOutput
Specified by:
write in interface java.io.ObjectOutput
Throws:
java.lang.UnsupportedOperationException

write

public void write(int b)
UNSUPPORTED

Specified by:
write in interface java.io.DataOutput
Specified by:
write in interface java.io.ObjectOutput
Throws:
java.lang.UnsupportedOperationException

flush

public void flush()
Specified by:
flush in interface java.io.ObjectOutput

close

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