public class ObjectInputList extends Object implements 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(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() |
String |
readLine() |
long |
readLong() |
Object |
readObject() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
long |
skip(long b)
UNSUPPORTED
|
int |
skipBytes(int b)
UNSUPPORTED
|
public ObjectInputList(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 Object readObject()
readObject
in interface ObjectInput
public boolean readBoolean()
readBoolean
in interface DataInput
public int readUnsignedShort()
readUnsignedShort
in interface DataInput
public int readUnsignedByte()
readUnsignedByte
in interface DataInput
public double readDouble()
readDouble
in interface DataInput
public int available()
available
in interface ObjectInput
UnsupportedOperationException
public void readFully(byte[] b, int off, int len)
readFully
in interface DataInput
UnsupportedOperationException
public void readFully(byte[] b)
readFully
in interface DataInput
UnsupportedOperationException
public int read(byte[] b, int off, int len)
read
in interface ObjectInput
UnsupportedOperationException
public int read(byte[] b)
read
in interface ObjectInput
UnsupportedOperationException
public int read()
read
in interface ObjectInput
UnsupportedOperationException
public long skip(long b)
skip
in interface ObjectInput
UnsupportedOperationException
public int skipBytes(int b)
skipBytes
in interface DataInput
UnsupportedOperationException
public void close()
close
in interface ObjectInput
close
in interface AutoCloseable