public class RiverObjectOutputStream extends MarshallerObjectOutputStream
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
Modifier | Constructor and Description |
---|---|
protected |
RiverObjectOutputStream(Marshaller delegateMarshaller,
RiverMarshaller marshaller) |
Modifier and Type | Method and Description |
---|---|
void |
defaultWriteObject() |
protected void |
finish(int restoreState) |
protected void |
fullReset() |
ObjectOutputStream.PutField |
putFields() |
protected int |
start() |
protected SerializableClass |
swapClass(SerializableClass newSerializableClass) |
protected Object |
swapCurrent(Object current) |
void |
write(byte[] buf)
Write all the bytes from the given array to the stream.
|
void |
write(byte[] buf,
int off,
int len)
Write some of the bytes from the given array to the stream.
|
void |
write(int val)
Writes to the output stream the eight low-order bits of the argument
b . |
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, close, drain, enableReplaceObject, flush, replaceObject, reset, useProtocolVersion, writeClassDescriptor, writeStreamHeader
writeObject
protected RiverObjectOutputStream(Marshaller delegateMarshaller, RiverMarshaller marshaller) throws IOException, SecurityException
IOException
SecurityException
public void writeFields() throws IOException
MarshallerObjectOutputStream
writeFields
in class MarshallerObjectOutputStream
IOException
public ObjectOutputStream.PutField putFields() throws IOException
MarshallerObjectOutputStream
putFields
in class MarshallerObjectOutputStream
IOException
protected SerializableClass swapClass(SerializableClass newSerializableClass)
public void defaultWriteObject() throws IOException
MarshallerObjectOutputStream
defaultWriteObject
in class MarshallerObjectOutputStream
IOException
protected int start() throws IOException
IOException
protected void writeObjectOverride(Object obj) throws IOException
MarshallerObjectOutputStream
writeObjectOverride
in class MarshallerObjectOutputStream
IOException
public void writeUnshared(Object obj) throws IOException
MarshallerObjectOutputStream
writeUnshared
in class MarshallerObjectOutputStream
IOException
public void write(int val) throws IOException
MarshallerObjectOutputStream
b
. The 24 high-order bits of
b
are ignored.write
in interface DataOutput
write
in interface ObjectOutput
write
in interface ByteOutput
write
in class MarshallerObjectOutputStream
val
- the byte to writeIOException
- if an error occurspublic void write(byte[] buf) throws IOException
MarshallerObjectOutputStream
write
in interface DataOutput
write
in interface ObjectOutput
write
in interface ByteOutput
write
in class MarshallerObjectOutputStream
buf
- the byte arrayIOException
- if an error occurspublic void write(byte[] buf, int off, int len) throws IOException
MarshallerObjectOutputStream
write
in interface DataOutput
write
in interface ObjectOutput
write
in interface ByteOutput
write
in class MarshallerObjectOutputStream
buf
- the byte arrayoff
- the index to start writing fromlen
- the number of bytes to writeIOException
- if an error occurspublic void writeBoolean(boolean val) throws IOException
MarshallerObjectOutputStream
writeBoolean
in interface DataOutput
writeBoolean
in class MarshallerObjectOutputStream
IOException
public void writeByte(int val) throws IOException
MarshallerObjectOutputStream
writeByte
in interface DataOutput
writeByte
in class MarshallerObjectOutputStream
IOException
public void writeShort(int val) throws IOException
MarshallerObjectOutputStream
writeShort
in interface DataOutput
writeShort
in class MarshallerObjectOutputStream
IOException
public void writeChar(int val) throws IOException
MarshallerObjectOutputStream
writeChar
in interface DataOutput
writeChar
in class MarshallerObjectOutputStream
IOException
public void writeInt(int val) throws IOException
MarshallerObjectOutputStream
writeInt
in interface DataOutput
writeInt
in class MarshallerObjectOutputStream
IOException
public void writeLong(long val) throws IOException
MarshallerObjectOutputStream
writeLong
in interface DataOutput
writeLong
in class MarshallerObjectOutputStream
IOException
public void writeFloat(float val) throws IOException
MarshallerObjectOutputStream
writeFloat
in interface DataOutput
writeFloat
in class MarshallerObjectOutputStream
IOException
public void writeDouble(double val) throws IOException
MarshallerObjectOutputStream
writeDouble
in interface DataOutput
writeDouble
in class MarshallerObjectOutputStream
IOException
public void writeBytes(String str) throws IOException
MarshallerObjectOutputStream
writeBytes
in interface DataOutput
writeBytes
in class MarshallerObjectOutputStream
IOException
public void writeChars(String str) throws IOException
MarshallerObjectOutputStream
writeChars
in interface DataOutput
writeChars
in class MarshallerObjectOutputStream
IOException
public void writeUTF(String str) throws IOException
MarshallerObjectOutputStream
writeUTF
in interface DataOutput
writeUTF
in class MarshallerObjectOutputStream
IOException
protected void finish(int restoreState) throws IOException
IOException
protected void fullReset()
Copyright © 2021 JBoss by Red Hat. All rights reserved.