public class IIOPOutputStream extends OutputStreamHook
OutputStreamHook.DefaultState, OutputStreamHook.InWriteObjectState, OutputStreamHook.WriteObjectState, OutputStreamHook.WroteCustomDataState, OutputStreamHook.WroteDefaultDataState
ObjectOutputStream.PutField
IN_WRITE_OBJECT, NOT_IN_WRITE_OBJECT, streamFormatVersion, writeObjectState, WROTE_CUSTOM_DATA, WROTE_DEFAULT_DATA
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 |
---|
IIOPOutputStream() |
Modifier and Type | Method and Description |
---|---|
protected void |
annotateClass(Class<?> cl) |
protected void |
beginOptionalCustomData() |
void |
close() |
void |
defaultWriteObjectDelegate()
Override the actions of the final method "defaultWriteObject()"
in ObjectOutputStream.
|
protected void |
drain() |
boolean |
enableReplaceObjectDelegate(boolean enable)
Override the actions of the final method "enableReplaceObject()"
in ObjectOutputStream.
|
void |
flush() |
protected void |
internalWriteUTF(OutputStream stream,
String data)
Helper method for correcting the Kestrel bug 4367783 (dealing
with larger than 8-bit chars).
|
protected Object |
replaceObject(Object obj) |
void |
reset()
Reset will disregard the state of any objects already written
to the stream.
|
void |
simpleWriteObject(Object obj,
byte formatVersion)
Override the actions of the final method "writeObject()"
in ObjectOutputStream.
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int data) |
void |
writeBoolean(boolean data) |
void |
writeByte(int data) |
void |
writeBytes(String data) |
void |
writeChar(int data) |
void |
writeChars(String data) |
void |
writeDouble(double data) |
void |
writeFloat(float data) |
void |
writeInt(int data) |
void |
writeLong(long data) |
void |
writeObjectOverride(Object obj)
Override the actions of the final method "writeObject()"
in ObjectOutputStream.
|
void |
writeShort(int data) |
protected void |
writeStreamHeader() |
void |
writeUTF(String data) |
defaultWriteObject, getStreamFormatVersion, putFields, setState, writeFields
annotateProxyClass, enableReplaceObject, useProtocolVersion, writeClassDescriptor, writeObject, writeUnshared
public IIOPOutputStream() throws IOException
IOException
protected void beginOptionalCustomData()
beginOptionalCustomData
in class OutputStreamHook
public final void writeObjectOverride(Object obj) throws IOException
writeObjectOverride
in class ObjectOutputStream
IOException
public final void simpleWriteObject(Object obj, byte formatVersion)
public final void defaultWriteObjectDelegate()
defaultWriteObjectDelegate
in class OutputStreamHook
public final boolean enableReplaceObjectDelegate(boolean enable)
protected final void annotateClass(Class<?> cl) throws IOException
annotateClass
in class ObjectOutputStream
IOException
public final void close() throws IOException
close
in interface Closeable
close
in interface ObjectOutput
close
in interface AutoCloseable
close
in class ObjectOutputStream
IOException
protected final void drain() throws IOException
drain
in class ObjectOutputStream
IOException
public final void flush() throws IOException
flush
in interface Flushable
flush
in interface ObjectOutput
flush
in class ObjectOutputStream
IOException
protected final Object replaceObject(Object obj) throws IOException
replaceObject
in class ObjectOutputStream
IOException
public final void reset() throws IOException
reset
in class ObjectOutputStream
IOException
public final void write(byte[] b) throws IOException
write
in interface DataOutput
write
in interface ObjectOutput
write
in class ObjectOutputStream
IOException
public final void write(byte[] b, int off, int len) throws IOException
write
in interface DataOutput
write
in interface ObjectOutput
write
in class ObjectOutputStream
IOException
public final void write(int data) throws IOException
write
in interface DataOutput
write
in interface ObjectOutput
write
in class ObjectOutputStream
IOException
public final void writeBoolean(boolean data) throws IOException
writeBoolean
in interface DataOutput
writeBoolean
in class ObjectOutputStream
IOException
public final void writeByte(int data) throws IOException
writeByte
in interface DataOutput
writeByte
in class ObjectOutputStream
IOException
public final void writeBytes(String data) throws IOException
writeBytes
in interface DataOutput
writeBytes
in class ObjectOutputStream
IOException
public final void writeChar(int data) throws IOException
writeChar
in interface DataOutput
writeChar
in class ObjectOutputStream
IOException
public final void writeChars(String data) throws IOException
writeChars
in interface DataOutput
writeChars
in class ObjectOutputStream
IOException
public final void writeDouble(double data) throws IOException
writeDouble
in interface DataOutput
writeDouble
in class ObjectOutputStream
IOException
public final void writeFloat(float data) throws IOException
writeFloat
in interface DataOutput
writeFloat
in class ObjectOutputStream
IOException
public final void writeInt(int data) throws IOException
writeInt
in interface DataOutput
writeInt
in class ObjectOutputStream
IOException
public final void writeLong(long data) throws IOException
writeLong
in interface DataOutput
writeLong
in class ObjectOutputStream
IOException
public final void writeShort(int data) throws IOException
writeShort
in interface DataOutput
writeShort
in class ObjectOutputStream
IOException
protected final void writeStreamHeader() throws IOException
writeStreamHeader
in class ObjectOutputStream
IOException
protected void internalWriteUTF(OutputStream stream, String data)
public final void writeUTF(String data) throws IOException
writeUTF
in interface DataOutput
writeUTF
in class ObjectOutputStream
IOException
Copyright © 2016 JBoss by Red Hat. All rights reserved.