public class RiverObjectOutputStream extends MarshallerObjectOutputStream
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() |
java.io.ObjectOutputStream.PutField |
putFields() |
protected int |
start() |
protected SerializableClass |
swapClass(SerializableClass newSerializableClass) |
protected java.lang.Object |
swapCurrent(java.lang.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(java.lang.String str) |
void |
writeChar(int val) |
void |
writeChars(java.lang.String str) |
void |
writeDouble(double val) |
void |
writeFields() |
void |
writeFloat(float val) |
void |
writeInt(int val) |
void |
writeLong(long val) |
protected void |
writeObjectOverride(java.lang.Object obj) |
void |
writeShort(int val) |
void |
writeUnshared(java.lang.Object obj) |
void |
writeUTF(java.lang.String str) |
annotateClass, annotateProxyClass, close, drain, enableReplaceObject, flush, replaceObject, reset, useProtocolVersion, writeClassDescriptor, writeStreamHeader
protected RiverObjectOutputStream(Marshaller delegateMarshaller, RiverMarshaller marshaller) throws java.io.IOException, java.lang.SecurityException
java.io.IOException
java.lang.SecurityException
public void writeFields() throws java.io.IOException
MarshallerObjectOutputStream
writeFields
in class MarshallerObjectOutputStream
java.io.IOException
public java.io.ObjectOutputStream.PutField putFields() throws java.io.IOException
MarshallerObjectOutputStream
putFields
in class MarshallerObjectOutputStream
java.io.IOException
protected SerializableClass swapClass(SerializableClass newSerializableClass)
protected java.lang.Object swapCurrent(java.lang.Object current)
public void defaultWriteObject() throws java.io.IOException
MarshallerObjectOutputStream
defaultWriteObject
in class MarshallerObjectOutputStream
java.io.IOException
protected int start() throws java.io.IOException
java.io.IOException
protected void writeObjectOverride(java.lang.Object obj) throws java.io.IOException
MarshallerObjectOutputStream
writeObjectOverride
in class MarshallerObjectOutputStream
java.io.IOException
public void writeUnshared(java.lang.Object obj) throws java.io.IOException
MarshallerObjectOutputStream
writeUnshared
in class MarshallerObjectOutputStream
java.io.IOException
public void write(int val) throws java.io.IOException
MarshallerObjectOutputStream
b
. The 24 high-order bits of
b
are ignored.write
in interface java.io.DataOutput
write
in interface java.io.ObjectOutput
write
in interface ByteOutput
write
in class MarshallerObjectOutputStream
val
- the byte to writejava.io.IOException
- if an error occurspublic void write(byte[] buf) throws java.io.IOException
MarshallerObjectOutputStream
write
in interface java.io.DataOutput
write
in interface java.io.ObjectOutput
write
in interface ByteOutput
write
in class MarshallerObjectOutputStream
buf
- the byte arrayjava.io.IOException
- if an error occurspublic void write(byte[] buf, int off, int len) throws java.io.IOException
MarshallerObjectOutputStream
write
in interface java.io.DataOutput
write
in interface java.io.ObjectOutput
write
in interface ByteOutput
write
in class MarshallerObjectOutputStream
buf
- the byte arrayoff
- the index to start writing fromlen
- the number of bytes to writejava.io.IOException
- if an error occurspublic void writeBoolean(boolean val) throws java.io.IOException
MarshallerObjectOutputStream
writeBoolean
in interface java.io.DataOutput
writeBoolean
in class MarshallerObjectOutputStream
java.io.IOException
public void writeByte(int val) throws java.io.IOException
MarshallerObjectOutputStream
writeByte
in interface java.io.DataOutput
writeByte
in class MarshallerObjectOutputStream
java.io.IOException
public void writeShort(int val) throws java.io.IOException
MarshallerObjectOutputStream
writeShort
in interface java.io.DataOutput
writeShort
in class MarshallerObjectOutputStream
java.io.IOException
public void writeChar(int val) throws java.io.IOException
MarshallerObjectOutputStream
writeChar
in interface java.io.DataOutput
writeChar
in class MarshallerObjectOutputStream
java.io.IOException
public void writeInt(int val) throws java.io.IOException
MarshallerObjectOutputStream
writeInt
in interface java.io.DataOutput
writeInt
in class MarshallerObjectOutputStream
java.io.IOException
public void writeLong(long val) throws java.io.IOException
MarshallerObjectOutputStream
writeLong
in interface java.io.DataOutput
writeLong
in class MarshallerObjectOutputStream
java.io.IOException
public void writeFloat(float val) throws java.io.IOException
MarshallerObjectOutputStream
writeFloat
in interface java.io.DataOutput
writeFloat
in class MarshallerObjectOutputStream
java.io.IOException
public void writeDouble(double val) throws java.io.IOException
MarshallerObjectOutputStream
writeDouble
in interface java.io.DataOutput
writeDouble
in class MarshallerObjectOutputStream
java.io.IOException
public void writeBytes(java.lang.String str) throws java.io.IOException
MarshallerObjectOutputStream
writeBytes
in interface java.io.DataOutput
writeBytes
in class MarshallerObjectOutputStream
java.io.IOException
public void writeChars(java.lang.String str) throws java.io.IOException
MarshallerObjectOutputStream
writeChars
in interface java.io.DataOutput
writeChars
in class MarshallerObjectOutputStream
java.io.IOException
public void writeUTF(java.lang.String str) throws java.io.IOException
MarshallerObjectOutputStream
writeUTF
in interface java.io.DataOutput
writeUTF
in class MarshallerObjectOutputStream
java.io.IOException
protected void finish(int restoreState) throws java.io.IOException
java.io.IOException
protected void fullReset()
Copyright © 2011 JBoss, a division of Red Hat, Inc.