|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.OutputStream
java.io.ObjectOutputStream
org.jppf.serialization.JPPFObjectOutputStream
public class JPPFObjectOutputStream
Implementation of ObjectOutputStream that writes 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 ObjectOutputStream specification is respected:
private void writeObject(ObjectOutputStream) is used whenever implementedExternalized interface is respected
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.io.ObjectOutputStream |
|---|
ObjectOutputStream.PutField |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
JPPFObjectOutputStream(OutputStream out)
Initialize this object stream. |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
defaultWriteObject()
|
void |
flush()
|
ObjectOutputStream.PutField |
putFields()
|
void |
write(byte[] buf)
|
void |
write(byte[] buf,
int off,
int len)
|
void |
write(int val)
|
void |
writeBoolean(boolean val)
|
void |
writeByte(int val)
|
void |
writeBytes(String str)
|
void |
writeChar(int val)
|
void |
writeChars(String str)
|
void |
writeDouble(double val)
|
void |
writeFields()
|
void |
writeFloat(float val)
|
void |
writeInt(int val)
|
void |
writeLong(long val)
|
protected void |
writeObjectOverride(Object obj)
|
void |
writeShort(int val)
|
void |
writeUTF(String str)
|
| Methods inherited from class java.io.ObjectOutputStream |
|---|
annotateClass, annotateProxyClass, drain, enableReplaceObject, replaceObject, reset, useProtocolVersion, writeClassDescriptor, writeObject, writeStreamHeader, writeUnshared |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JPPFObjectOutputStream(OutputStream out)
throws IOException
out - the stream to write objects to.
IOException - if any error occurs.| Method Detail |
|---|
protected final void writeObjectOverride(Object obj)
throws IOException
writeObjectOverride in class ObjectOutputStreamIOException
public void write(int val)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in class ObjectOutputStreamIOException
public void write(byte[] buf)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in class ObjectOutputStreamIOException
public void write(byte[] buf,
int off,
int len)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in class ObjectOutputStreamIOException
public void writeBoolean(boolean val)
throws IOException
writeBoolean in interface DataOutputwriteBoolean in class ObjectOutputStreamIOException
public void writeByte(int val)
throws IOException
writeByte in interface DataOutputwriteByte in class ObjectOutputStreamIOException
public void writeShort(int val)
throws IOException
writeShort in interface DataOutputwriteShort in class ObjectOutputStreamIOException
public void writeChar(int val)
throws IOException
writeChar in interface DataOutputwriteChar in class ObjectOutputStreamIOException
public void writeInt(int val)
throws IOException
writeInt in interface DataOutputwriteInt in class ObjectOutputStreamIOException
public void writeLong(long val)
throws IOException
writeLong in interface DataOutputwriteLong in class ObjectOutputStreamIOException
public void writeFloat(float val)
throws IOException
writeFloat in interface DataOutputwriteFloat in class ObjectOutputStreamIOException
public void writeDouble(double val)
throws IOException
writeDouble in interface DataOutputwriteDouble in class ObjectOutputStreamIOException
public void writeBytes(String str)
throws IOException
writeBytes in interface DataOutputwriteBytes in class ObjectOutputStreamIOException
public void writeChars(String str)
throws IOException
writeChars in interface DataOutputwriteChars in class ObjectOutputStreamIOException
public void writeUTF(String str)
throws IOException
writeUTF in interface DataOutputwriteUTF in class ObjectOutputStreamIOException
public void defaultWriteObject()
throws IOException
defaultWriteObject in class ObjectOutputStreamIOException
public void flush()
throws IOException
flush in interface Flushableflush in interface ObjectOutputflush in class ObjectOutputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in interface ObjectOutputclose in class ObjectOutputStreamIOException
public ObjectOutputStream.PutField putFields()
throws IOException
putFields in class ObjectOutputStreamIOException
public void writeFields()
throws IOException
writeFields in class ObjectOutputStreamIOException
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||