public class JPPFObjectInputStream extends ObjectInputStream
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 implementedExternalizable interface is respectedObjectInputStream.GetFieldbaseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING| Constructor and Description |
|---|
JPPFObjectInputStream(InputStream in)
Initialize this object input stream with the specified stream.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
available, enableResolveObject, readClassDescriptor, readObject, readStreamHeader, readUnshared, registerValidation, resolveClass, resolveObject, resolveProxyClassmark, markSupported, read, reset, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitread, skippublic JPPFObjectInputStream(InputStream in) throws IOException
in - the stream to read data from.IOException - if an I/O error occurs.protected Object readObjectOverride() throws IOException, ClassNotFoundException
readObjectOverride in class ObjectInputStreamIOExceptionClassNotFoundExceptionpublic int read()
throws IOException
read in interface ObjectInputread in class ObjectInputStreamIOExceptionpublic int read(byte[] buf,
int off,
int len)
throws IOException
read in interface ObjectInputread in class ObjectInputStreamIOExceptionpublic boolean readBoolean()
throws IOException
readBoolean in interface DataInputreadBoolean in class ObjectInputStreamIOExceptionpublic byte readByte()
throws IOException
readByte in interface DataInputreadByte in class ObjectInputStreamIOExceptionpublic char readChar()
throws IOException
readChar in interface DataInputreadChar in class ObjectInputStreamIOExceptionpublic short readShort()
throws IOException
readShort in interface DataInputreadShort in class ObjectInputStreamIOExceptionpublic int readInt()
throws IOException
readInt in interface DataInputreadInt in class ObjectInputStreamIOExceptionpublic long readLong()
throws IOException
readLong in interface DataInputreadLong in class ObjectInputStreamIOExceptionpublic float readFloat()
throws IOException
readFloat in interface DataInputreadFloat in class ObjectInputStreamIOExceptionpublic double readDouble()
throws IOException
readDouble in interface DataInputreadDouble in class ObjectInputStreamIOExceptionpublic int skipBytes(int len)
throws IOException
skipBytes in interface DataInputskipBytes in class ObjectInputStreamIOExceptionpublic String readUTF() throws IOException
readUTF in interface DataInputreadUTF in class ObjectInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface ObjectInputclose in interface AutoCloseableclose in class ObjectInputStreamIOExceptionpublic int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputreadUnsignedByte in class ObjectInputStreamIOExceptionpublic int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputreadUnsignedShort in class ObjectInputStreamIOExceptionpublic void readFully(byte[] buf)
throws IOException
readFully in interface DataInputreadFully in class ObjectInputStreamIOExceptionpublic void readFully(byte[] buf,
int off,
int len)
throws IOException
readFully in interface DataInputreadFully in class ObjectInputStreamIOExceptionpublic String readLine() throws IOException
readLine in interface DataInputreadLine in class ObjectInputStreamIOExceptionpublic void defaultReadObject()
throws IOException,
ClassNotFoundException
defaultReadObject in class ObjectInputStreamIOExceptionClassNotFoundExceptionpublic ObjectInputStream.GetField readFields() throws IOException, ClassNotFoundException
readFields in class ObjectInputStreamIOExceptionClassNotFoundExceptionCopyright © 2005-2012 JPPF Team.