public class ObjectInputList
extends java.lang.Object
implements java.io.ObjectInput
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.| Constructor and Description |
|---|
ObjectInputList(java.util.List list)
Creates a new
ObjectInputList instance that reads from
the given List. |
| Modifier and Type | Method and Description |
|---|---|
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
|
public ObjectInputList(java.util.List list)
ObjectInputList instance that reads from
the given List. This list should have been generated
using ObjectOutputList.list - the list to use for inputpublic java.lang.Object readObject()
readObject in interface java.io.ObjectInputpublic java.lang.String readUTF()
readUTF in interface java.io.DataInputpublic java.lang.String readLine()
readLine in interface java.io.DataInputpublic boolean readBoolean()
readBoolean in interface java.io.DataInputpublic short readShort()
readShort in interface java.io.DataInputpublic long readLong()
readLong in interface java.io.DataInputpublic int readUnsignedShort()
readUnsignedShort in interface java.io.DataInputpublic int readUnsignedByte()
readUnsignedByte in interface java.io.DataInputpublic int readInt()
readInt in interface java.io.DataInputpublic float readFloat()
readFloat in interface java.io.DataInputpublic double readDouble()
readDouble in interface java.io.DataInputpublic char readChar()
readChar in interface java.io.DataInputpublic byte readByte()
readByte in interface java.io.DataInputpublic int available()
available in interface java.io.ObjectInputjava.lang.UnsupportedOperationExceptionpublic void readFully(byte[] b,
int off,
int len)
readFully in interface java.io.DataInputjava.lang.UnsupportedOperationExceptionpublic void readFully(byte[] b)
readFully in interface java.io.DataInputjava.lang.UnsupportedOperationExceptionpublic int read(byte[] b,
int off,
int len)
read in interface java.io.ObjectInputjava.lang.UnsupportedOperationExceptionpublic int read(byte[] b)
read in interface java.io.ObjectInputjava.lang.UnsupportedOperationExceptionpublic int read()
read in interface java.io.ObjectInputjava.lang.UnsupportedOperationExceptionpublic long skip(long b)
skip in interface java.io.ObjectInputjava.lang.UnsupportedOperationExceptionpublic int skipBytes(int b)
skipBytes in interface java.io.DataInputjava.lang.UnsupportedOperationExceptionpublic void close()
close in interface java.io.ObjectInputclose in interface java.lang.AutoCloseable