|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.InputStream
java.io.ObjectInputStream
org.jppf.serialization.JPPFObjectInputStream
public class JPPFObjectInputStream
Implementation of ObjectInputStream that reads objects without regards to whether
they implement Serializable or not. This allows using non-serializable classes in
JPPF tasks, especially when their source code is not available.
The rest of the ObjectInputStream specification is respected:
private void readObject(ObjectInputStream) is used whenever implementedExternalized interface is respected
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.io.ObjectInputStream |
|---|
ObjectInputStream.GetField |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
JPPFObjectInputStream(InputStream in)
Initialize this object input stream witht he specified stream. |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
defaultReadObject()
|
int |
read()
|
int |
read(byte[] buf,
int off,
int len)
|
boolean |
readBoolean()
|
byte |
readByte()
|
char |
readChar()
|
double |
readDouble()
|
ObjectInputStream.GetField |
readFields()
|
float |
readFloat()
|
void |
readFully(byte[] buf)
|
void |
readFully(byte[] buf,
int off,
int len)
|
int |
readInt()
|
String |
readLine()
|
long |
readLong()
|
protected Object |
readObjectOverride()
|
short |
readShort()
|
int |
readUnsignedByte()
|
int |
readUnsignedShort()
|
String |
readUTF()
|
int |
skipBytes(int len)
|
| Methods inherited from class java.io.ObjectInputStream |
|---|
available, enableResolveObject, readClassDescriptor, readObject, readStreamHeader, readUnshared, registerValidation, resolveClass, resolveObject, resolveProxyClass |
| Methods inherited from class java.io.InputStream |
|---|
mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.io.ObjectInput |
|---|
read, skip |
| Constructor Detail |
|---|
public JPPFObjectInputStream(InputStream in)
throws IOException
in - the stream to read data from.
IOException - if an I/O error occurs.| Method Detail |
|---|
protected Object readObjectOverride()
throws IOException,
ClassNotFoundException
readObjectOverride in class ObjectInputStreamIOException
ClassNotFoundException
public int read()
throws IOException
read in interface ObjectInputread in class ObjectInputStreamIOException
public int read(byte[] buf,
int off,
int len)
throws IOException
read in interface ObjectInputread in class ObjectInputStreamIOException
public boolean readBoolean()
throws IOException
readBoolean in interface DataInputreadBoolean in class ObjectInputStreamIOException
public byte readByte()
throws IOException
readByte in interface DataInputreadByte in class ObjectInputStreamIOException
public char readChar()
throws IOException
readChar in interface DataInputreadChar in class ObjectInputStreamIOException
public short readShort()
throws IOException
readShort in interface DataInputreadShort in class ObjectInputStreamIOException
public int readInt()
throws IOException
readInt in interface DataInputreadInt in class ObjectInputStreamIOException
public long readLong()
throws IOException
readLong in interface DataInputreadLong in class ObjectInputStreamIOException
public float readFloat()
throws IOException
readFloat in interface DataInputreadFloat in class ObjectInputStreamIOException
public double readDouble()
throws IOException
readDouble in interface DataInputreadDouble in class ObjectInputStreamIOException
public int skipBytes(int len)
throws IOException
skipBytes in interface DataInputskipBytes in class ObjectInputStreamIOException
public String readUTF()
throws IOException
readUTF in interface DataInputreadUTF in class ObjectInputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in interface ObjectInputclose in class ObjectInputStreamIOException
public int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputreadUnsignedByte in class ObjectInputStreamIOException
public int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputreadUnsignedShort in class ObjectInputStreamIOException
public void readFully(byte[] buf)
throws IOException
readFully in interface DataInputreadFully in class ObjectInputStreamIOException
public void readFully(byte[] buf,
int off,
int len)
throws IOException
readFully in interface DataInputreadFully in class ObjectInputStreamIOException
public String readLine()
throws IOException
readLine in interface DataInputreadLine in class ObjectInputStreamIOException
public void defaultReadObject()
throws IOException,
ClassNotFoundException
defaultReadObject in class ObjectInputStreamIOException
ClassNotFoundException
public ObjectInputStream.GetField readFields()
throws IOException,
ClassNotFoundException
readFields in class ObjectInputStreamIOException
ClassNotFoundException
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||