public class CustomObjectOutputStream extends ObjectOutputStream
Modifier and Type | Class and Description |
---|---|
static interface |
CustomObjectOutputStream.StreamCallback |
ObjectOutputStream.PutField
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.
|
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, writeStreamHeader
public CustomObjectOutputStream(CustomObjectOutputStream.StreamCallback callback) throws IOException, SecurityException
IOException
SecurityException
#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 ObjectOutputStream
IOException
protected void writeObjectOverride(Object obj) throws IOException
writeObjectOverride
in class ObjectOutputStream
IOException
public void writeBoolean(boolean val) throws IOException
writeBoolean
in interface DataOutput
writeBoolean
in class ObjectOutputStream
IOException
public void writeByte(int val) throws IOException
writeByte
in interface DataOutput
writeByte
in class ObjectOutputStream
IOException
public void writeInt(int val) throws IOException
writeInt
in interface DataOutput
writeInt
in class ObjectOutputStream
IOException
public void writeChar(int val) throws IOException
writeChar
in interface DataOutput
writeChar
in class ObjectOutputStream
IOException
public void writeDouble(double val) throws IOException
writeDouble
in interface DataOutput
writeDouble
in class ObjectOutputStream
IOException
public void writeFloat(float val) throws IOException
writeFloat
in interface DataOutput
writeFloat
in class ObjectOutputStream
IOException
public void writeLong(long val) throws IOException
writeLong
in interface DataOutput
writeLong
in class ObjectOutputStream
IOException
public void writeShort(int val) throws IOException
writeShort
in interface DataOutput
writeShort
in class ObjectOutputStream
IOException
public void write(byte[] buf) throws IOException
write
in interface DataOutput
write
in interface ObjectOutput
write
in class ObjectOutputStream
IOException
public void writeChars(String str) throws IOException
writeChars
in interface DataOutput
writeChars
in class ObjectOutputStream
IOException
public void writeUTF(String str) throws IOException
writeUTF
in interface DataOutput
writeUTF
in class ObjectOutputStream
IOException
public void write(int val) throws IOException
write
in interface DataOutput
write
in interface ObjectOutput
write
in class ObjectOutputStream
IOException
public void write(byte[] buf, int off, int len) throws IOException
write
in interface DataOutput
write
in interface ObjectOutput
write
in class ObjectOutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in interface ObjectOutput
flush
in class ObjectOutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface ObjectOutput
close
in interface AutoCloseable
close
in class ObjectOutputStream
IOException
public ObjectOutputStream.PutField putFields()
putFields
in class ObjectOutputStream
public void writeFields() throws IOException
writeFields
in class ObjectOutputStream
IOException
public void reset()
reset
in class ObjectOutputStream
public void useProtocolVersion(int version)
useProtocolVersion
in class ObjectOutputStream
public void writeBytes(String str)
writeBytes
in interface DataOutput
writeBytes
in class ObjectOutputStream
public void writeUnshared(Object obj)
writeUnshared
in class ObjectOutputStream
Copyright © 2016 Internet2. All rights reserved.