public class ObjectOutputList extends Object implements ObjectOutput
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.| Constructor and Description |
|---|
ObjectOutputList(List list)
Constructs a new
ObjectOutputList that appends its
output to the given list. |
| Modifier and Type | Method and Description |
|---|---|
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) |
public ObjectOutputList(List list)
ObjectOutputList that appends its
output to the given list.list - the list to use for outputpublic void writeObject(Object obj)
writeObject in interface ObjectOutputpublic void writeUTF(String str)
writeUTF in interface DataOutputpublic void writeChars(String str)
writeChars in interface DataOutputpublic void writeBytes(String str)
writeBytes in interface DataOutputpublic void writeBoolean(boolean b)
writeBoolean in interface DataOutputpublic void writeLong(long l)
writeLong in interface DataOutputpublic void writeShort(int s)
writeShort in interface DataOutputpublic void writeInt(int i)
writeInt in interface DataOutputpublic void writeChar(int c)
writeChar in interface DataOutputpublic void writeByte(int b)
writeByte in interface DataOutputpublic void writeFloat(float f)
writeFloat in interface DataOutputpublic void writeDouble(double d)
writeDouble in interface DataOutputpublic void write(byte[] b,
int off,
int len)
write in interface DataOutputwrite in interface ObjectOutputUnsupportedOperationExceptionpublic void write(byte[] b)
write in interface DataOutputwrite in interface ObjectOutputUnsupportedOperationExceptionpublic void write(int b)
write in interface DataOutputwrite in interface ObjectOutputUnsupportedOperationExceptionpublic void flush()
flush in interface ObjectOutputpublic void close()
close in interface ObjectOutputclose in interface AutoCloseable