public class CustomObjectOutputStream extends ObjectOutputStream
| Modifier and Type | Class and Description |
|---|---|
static interface |
CustomObjectOutputStream.StreamCallback |
ObjectOutputStream.PutFieldbaseWireHandle, 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.
|
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(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 |
writeUnshared(Object obj) |
void |
writeUTF(String str) |
annotateClass, annotateProxyClass, drain, enableReplaceObject, replaceObject, writeClassDescriptor, writeObject, writeStreamHeaderpublic CustomObjectOutputStream(CustomObjectOutputStream.StreamCallback callback) throws IOException, SecurityException
IOExceptionSecurityException#getInstance(edu.internet2.middleware.grouperClientExt.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 IOException
defaultWriteObject in class ObjectOutputStreamIOExceptionprotected void writeObjectOverride(Object obj) throws IOException
writeObjectOverride in class ObjectOutputStreamIOExceptionpublic void writeBoolean(boolean val)
throws IOException
writeBoolean in interface DataOutputwriteBoolean in class ObjectOutputStreamIOExceptionpublic void writeByte(int val)
throws IOException
writeByte in interface DataOutputwriteByte in class ObjectOutputStreamIOExceptionpublic void writeInt(int val)
throws IOException
writeInt in interface DataOutputwriteInt in class ObjectOutputStreamIOExceptionpublic void writeChar(int val)
throws IOException
writeChar in interface DataOutputwriteChar in class ObjectOutputStreamIOExceptionpublic void writeDouble(double val)
throws IOException
writeDouble in interface DataOutputwriteDouble in class ObjectOutputStreamIOExceptionpublic void writeFloat(float val)
throws IOException
writeFloat in interface DataOutputwriteFloat in class ObjectOutputStreamIOExceptionpublic void writeLong(long val)
throws IOException
writeLong in interface DataOutputwriteLong in class ObjectOutputStreamIOExceptionpublic void writeShort(int val)
throws IOException
writeShort in interface DataOutputwriteShort in class ObjectOutputStreamIOExceptionpublic void write(byte[] buf)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in class ObjectOutputStreamIOExceptionpublic void writeChars(String str) throws IOException
writeChars in interface DataOutputwriteChars in class ObjectOutputStreamIOExceptionpublic void writeUTF(String str) throws IOException
writeUTF in interface DataOutputwriteUTF in class ObjectOutputStreamIOExceptionpublic void write(int val)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in class ObjectOutputStreamIOExceptionpublic void write(byte[] buf,
int off,
int len)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in class ObjectOutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in interface ObjectOutputflush in class ObjectOutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface ObjectOutputclose in interface AutoCloseableclose in class ObjectOutputStreamIOExceptionpublic ObjectOutputStream.PutField putFields()
putFields in class ObjectOutputStreampublic void writeFields()
throws IOException
writeFields in class ObjectOutputStreamIOExceptionpublic void reset()
reset in class ObjectOutputStreampublic void useProtocolVersion(int version)
useProtocolVersion in class ObjectOutputStreampublic void writeBytes(String str)
writeBytes in interface DataOutputwriteBytes in class ObjectOutputStreampublic void writeUnshared(Object obj)
writeUnshared in class ObjectOutputStreamCopyright © 2021 Internet2. All rights reserved.