public class RiverObjectOutputStream extends MarshallerObjectOutputStream
ObjectOutputStream.PutFieldbaseWireHandle, 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, writeStreamHeaderwriteObjectprotected RiverObjectOutputStream(Marshaller delegateMarshaller, RiverMarshaller marshaller) throws IOException, SecurityException
IOExceptionSecurityExceptionpublic void writeFields()
throws IOException
MarshallerObjectOutputStreamwriteFields in class MarshallerObjectOutputStreamIOExceptionpublic ObjectOutputStream.PutField putFields() throws IOException
MarshallerObjectOutputStreamputFields in class MarshallerObjectOutputStreamIOExceptionprotected SerializableClass swapClass(SerializableClass newSerializableClass)
public void defaultWriteObject()
throws IOException
MarshallerObjectOutputStreamdefaultWriteObject in class MarshallerObjectOutputStreamIOExceptionprotected int start()
throws IOException
IOExceptionprotected void writeObjectOverride(Object obj) throws IOException
MarshallerObjectOutputStreamwriteObjectOverride in class MarshallerObjectOutputStreamIOExceptionpublic void writeUnshared(Object obj) throws IOException
MarshallerObjectOutputStreamwriteUnshared in class MarshallerObjectOutputStreamIOExceptionpublic void write(int val)
throws IOException
MarshallerObjectOutputStreamb. The 24 high-order bits of
b are ignored.write in interface DataOutputwrite in interface ObjectOutputwrite in interface ByteOutputwrite in class MarshallerObjectOutputStreamval - the byte to writeIOException - if an error occurspublic void write(byte[] buf)
throws IOException
MarshallerObjectOutputStreamwrite in interface DataOutputwrite in interface ObjectOutputwrite in interface ByteOutputwrite in class MarshallerObjectOutputStreambuf - the byte arrayIOException - if an error occurspublic void write(byte[] buf,
int off,
int len)
throws IOException
MarshallerObjectOutputStreamwrite in interface DataOutputwrite in interface ObjectOutputwrite in interface ByteOutputwrite in class MarshallerObjectOutputStreambuf - 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
MarshallerObjectOutputStreamwriteBoolean in interface DataOutputwriteBoolean in class MarshallerObjectOutputStreamIOExceptionpublic void writeByte(int val)
throws IOException
MarshallerObjectOutputStreamwriteByte in interface DataOutputwriteByte in class MarshallerObjectOutputStreamIOExceptionpublic void writeShort(int val)
throws IOException
MarshallerObjectOutputStreamwriteShort in interface DataOutputwriteShort in class MarshallerObjectOutputStreamIOExceptionpublic void writeChar(int val)
throws IOException
MarshallerObjectOutputStreamwriteChar in interface DataOutputwriteChar in class MarshallerObjectOutputStreamIOExceptionpublic void writeInt(int val)
throws IOException
MarshallerObjectOutputStreamwriteInt in interface DataOutputwriteInt in class MarshallerObjectOutputStreamIOExceptionpublic void writeLong(long val)
throws IOException
MarshallerObjectOutputStreamwriteLong in interface DataOutputwriteLong in class MarshallerObjectOutputStreamIOExceptionpublic void writeFloat(float val)
throws IOException
MarshallerObjectOutputStreamwriteFloat in interface DataOutputwriteFloat in class MarshallerObjectOutputStreamIOExceptionpublic void writeDouble(double val)
throws IOException
MarshallerObjectOutputStreamwriteDouble in interface DataOutputwriteDouble in class MarshallerObjectOutputStreamIOExceptionpublic void writeBytes(String str) throws IOException
MarshallerObjectOutputStreamwriteBytes in interface DataOutputwriteBytes in class MarshallerObjectOutputStreamIOExceptionpublic void writeChars(String str) throws IOException
MarshallerObjectOutputStreamwriteChars in interface DataOutputwriteChars in class MarshallerObjectOutputStreamIOExceptionpublic void writeUTF(String str) throws IOException
MarshallerObjectOutputStreamwriteUTF in interface DataOutputwriteUTF in class MarshallerObjectOutputStreamIOExceptionprotected void finish(int restoreState)
throws IOException
IOExceptionprotected void fullReset()
Copyright © 2020 JBoss by Red Hat. All rights reserved.