public class CustomObjectOutputStream
extends java.io.ObjectOutputStream
| Modifier and Type | Class and Description |
|---|---|
static interface |
CustomObjectOutputStream.StreamCallback |
baseWireHandle, 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 |
|---|
CustomObjectOutputStream(CustomObjectOutputStream.StreamCallback callback)
Warning, this object is expensive to create (due to functionality inherited from superclass).
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
defaultWriteObject()
Methods to delegate to callback
|
void |
flush() |
static CustomObjectOutputStream |
getInstance(DataHolder whereFrom,
CustomObjectOutputStream.StreamCallback callback) |
CustomObjectOutputStream.StreamCallback |
peekCallback() |
CustomObjectOutputStream.StreamCallback |
popCallback() |
void |
pushCallback(CustomObjectOutputStream.StreamCallback callback)
Allows the CustomObjectOutputStream (which is expensive to create) to be reused.
|
java.io.ObjectOutputStream.PutField |
putFields() |
void |
reset()
Unsupported methods
|
void |
useProtocolVersion(int version) |
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(java.lang.String str) |
void |
writeChar(int val) |
void |
writeChars(java.lang.String str) |
void |
writeDouble(double val) |
void |
writeFields() |
void |
writeFloat(float val) |
void |
writeInt(int val) |
void |
writeLong(long val) |
protected void |
writeObjectOverride(java.lang.Object obj) |
void |
writeShort(int val) |
void |
writeUnshared(java.lang.Object obj) |
void |
writeUTF(java.lang.String str) |
public CustomObjectOutputStream(CustomObjectOutputStream.StreamCallback callback) throws java.io.IOException, java.lang.SecurityException
java.io.IOExceptionjava.lang.SecurityExceptiongetInstance(com.thoughtworks.xstream.converters.DataHolder, com.thoughtworks.xstream.core.util.CustomObjectOutputStream.StreamCallback)public static CustomObjectOutputStream getInstance(DataHolder whereFrom, CustomObjectOutputStream.StreamCallback callback)
public void pushCallback(CustomObjectOutputStream.StreamCallback callback)
public CustomObjectOutputStream.StreamCallback popCallback()
public CustomObjectOutputStream.StreamCallback peekCallback()
public void defaultWriteObject()
throws java.io.IOException
defaultWriteObject in class java.io.ObjectOutputStreamjava.io.IOExceptionprotected void writeObjectOverride(java.lang.Object obj)
throws java.io.IOException
writeObjectOverride in class java.io.ObjectOutputStreamjava.io.IOExceptionpublic void writeBoolean(boolean val)
throws java.io.IOException
writeBoolean in interface java.io.DataOutputwriteBoolean in class java.io.ObjectOutputStreamjava.io.IOExceptionpublic void writeByte(int val)
throws java.io.IOException
writeByte in interface java.io.DataOutputwriteByte in class java.io.ObjectOutputStreamjava.io.IOExceptionpublic void writeInt(int val)
throws java.io.IOException
writeInt in interface java.io.DataOutputwriteInt in class java.io.ObjectOutputStreamjava.io.IOExceptionpublic void writeChar(int val)
throws java.io.IOException
writeChar in interface java.io.DataOutputwriteChar in class java.io.ObjectOutputStreamjava.io.IOExceptionpublic void writeDouble(double val)
throws java.io.IOException
writeDouble in interface java.io.DataOutputwriteDouble in class java.io.ObjectOutputStreamjava.io.IOExceptionpublic void writeFloat(float val)
throws java.io.IOException
writeFloat in interface java.io.DataOutputwriteFloat in class java.io.ObjectOutputStreamjava.io.IOExceptionpublic void writeLong(long val)
throws java.io.IOException
writeLong in interface java.io.DataOutputwriteLong in class java.io.ObjectOutputStreamjava.io.IOExceptionpublic void writeShort(int val)
throws java.io.IOException
writeShort in interface java.io.DataOutputwriteShort in class java.io.ObjectOutputStreamjava.io.IOExceptionpublic void write(byte[] buf)
throws java.io.IOException
write in interface java.io.DataOutputwrite in interface java.io.ObjectOutputwrite in class java.io.ObjectOutputStreamjava.io.IOExceptionpublic void writeChars(java.lang.String str)
throws java.io.IOException
writeChars in interface java.io.DataOutputwriteChars in class java.io.ObjectOutputStreamjava.io.IOExceptionpublic void writeUTF(java.lang.String str)
throws java.io.IOException
writeUTF in interface java.io.DataOutputwriteUTF in class java.io.ObjectOutputStreamjava.io.IOExceptionpublic void write(int val)
throws java.io.IOException
write in interface java.io.DataOutputwrite in interface java.io.ObjectOutputwrite in class java.io.ObjectOutputStreamjava.io.IOExceptionpublic void write(byte[] buf,
int off,
int len)
throws java.io.IOException
write in interface java.io.DataOutputwrite in interface java.io.ObjectOutputwrite in class java.io.ObjectOutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in interface java.io.ObjectOutputflush in class java.io.ObjectOutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.io.ObjectOutputclose in interface java.lang.AutoCloseableclose in class java.io.ObjectOutputStreamjava.io.IOExceptionpublic java.io.ObjectOutputStream.PutField putFields()
putFields in class java.io.ObjectOutputStreampublic void writeFields()
throws java.io.IOException
writeFields in class java.io.ObjectOutputStreamjava.io.IOExceptionpublic void reset()
reset in class java.io.ObjectOutputStreampublic void useProtocolVersion(int version)
useProtocolVersion in class java.io.ObjectOutputStreampublic void writeBytes(java.lang.String str)
writeBytes in interface java.io.DataOutputwriteBytes in class java.io.ObjectOutputStreampublic void writeUnshared(java.lang.Object obj)
writeUnshared in class java.io.ObjectOutputStreamCopyright © 2004–2024 XStream. All rights reserved.