public class ObjectEncoderOutputStream extends ObjectOutputStream
ObjectOutput
which is interoperable with ObjectDecoderInputStream
.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 |
---|
ObjectEncoderOutputStream(DataOutputStream out,
int initialBufferSize) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
reset() |
protected void |
writeObjectOverride(Object obj) |
annotateClass, annotateProxyClass, defaultWriteObject, drain, enableReplaceObject, putFields, replaceObject, useProtocolVersion, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeClassDescriptor, writeDouble, writeFields, writeFloat, writeInt, writeLong, writeObject, writeShort, writeStreamHeader, writeUnshared, writeUTF
public ObjectEncoderOutputStream(DataOutputStream out, int initialBufferSize) throws SecurityException, IOException
SecurityException
IOException
protected final void writeObjectOverride(Object obj) throws IOException
writeObjectOverride
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 void flush() throws IOException
flush
in interface Flushable
flush
in interface ObjectOutput
flush
in class ObjectOutputStream
IOException
public void reset() throws IOException
reset
in class ObjectOutputStream
IOException
Copyright © 2018 JBoss by Red Hat. All rights reserved.