public abstract class MarshallerObjectOutputStream extends ObjectOutputStream implements ByteOutput
Serializable.
This class is not part of the marshalling API; rather it is intended for marshaller implementers to make it easier to develop Java serialization-compatible marshallers.
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 |
MarshallerObjectOutputStream(Marshaller output)
Construct a new instance that delegates to the given marshaller.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
annotateClass(Class<?> cl) |
protected void |
annotateProxyClass(Class<?> cl) |
void |
close() |
abstract void |
defaultWriteObject() |
protected void |
drain() |
protected boolean |
enableReplaceObject(boolean enable) |
void |
flush() |
abstract ObjectOutputStream.PutField |
putFields() |
protected Object |
replaceObject(Object obj) |
void |
reset() |
void |
useProtocolVersion(int version) |
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) |
protected void |
writeClassDescriptor(ObjectStreamClass desc) |
void |
writeDouble(double val) |
abstract void |
writeFields() |
void |
writeFloat(float val) |
void |
writeInt(int val) |
void |
writeLong(long val) |
protected void |
writeObjectOverride(Object obj) |
void |
writeShort(int val) |
protected void |
writeStreamHeader() |
void |
writeUnshared(Object obj) |
void |
writeUTF(String str) |
writeObjectprotected MarshallerObjectOutputStream(Marshaller output) throws IOException, SecurityException
output - the delegate marshallerIOException - if an I/O error occursSecurityException - if the caller does not have permission to construct an instance of this classprotected void writeObjectOverride(Object obj) throws IOException
writeObjectOverride in class ObjectOutputStreamIOExceptionpublic void writeUnshared(Object obj) throws IOException
writeUnshared in class ObjectOutputStreamIOExceptionpublic void write(int val)
throws IOException
b. The 24 high-order bits of
b are ignored.write in interface DataOutputwrite in interface ObjectOutputwrite in interface ByteOutputwrite in class ObjectOutputStreamval - the byte to writeIOException - if an error occurspublic void write(byte[] buf)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in interface ByteOutputwrite in class ObjectOutputStreambuf - the byte arrayIOException - if an error occurspublic void write(byte[] buf,
int off,
int len)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in interface ByteOutputwrite in class ObjectOutputStreambuf - the byte arrayoff - the index to start writing fromlen - the number of bytes to writeIOException - if an error occurspublic void flush()
throws IOException
flush in interface Flushableflush in interface ObjectOutputflush in class ObjectOutputStreamIOExceptionpublic void writeBoolean(boolean val)
throws IOException
writeBoolean in interface DataOutputwriteBoolean in class ObjectOutputStreamIOExceptionpublic void writeByte(int val)
throws IOException
writeByte in interface DataOutputwriteByte in class ObjectOutputStreamIOExceptionpublic void writeShort(int val)
throws IOException
writeShort in interface DataOutputwriteShort in class ObjectOutputStreamIOExceptionpublic void writeChar(int val)
throws IOException
writeChar in interface DataOutputwriteChar in class ObjectOutputStreamIOExceptionpublic void writeInt(int val)
throws IOException
writeInt in interface DataOutputwriteInt in class ObjectOutputStreamIOExceptionpublic void writeLong(long val)
throws IOException
writeLong in interface DataOutputwriteLong in class ObjectOutputStreamIOExceptionpublic void writeFloat(float val)
throws IOException
writeFloat in interface DataOutputwriteFloat in class ObjectOutputStreamIOExceptionpublic void writeDouble(double val)
throws IOException
writeDouble in interface DataOutputwriteDouble in class ObjectOutputStreamIOExceptionpublic void writeBytes(String str) throws IOException
writeBytes in interface DataOutputwriteBytes in class ObjectOutputStreamIOExceptionpublic void writeChars(String str) throws IOException
writeChars in interface DataOutputwriteChars in class ObjectOutputStreamIOExceptionpublic void writeUTF(String str) throws IOException
writeUTF in interface DataOutputwriteUTF in class ObjectOutputStreamIOExceptionpublic final void reset()
throws IOException
reset in class ObjectOutputStreamIOExceptionpublic final void close()
throws IOException
close in interface Closeableclose in interface ObjectOutputclose in interface AutoCloseableclose in class ObjectOutputStreamIOExceptionpublic final void useProtocolVersion(int version)
throws IOException
useProtocolVersion in class ObjectOutputStreamIOExceptionprotected final void annotateClass(Class<?> cl) throws IOException
annotateClass in class ObjectOutputStreamIOExceptionprotected final void annotateProxyClass(Class<?> cl) throws IOException
annotateProxyClass in class ObjectOutputStreamIOExceptionprotected final Object replaceObject(Object obj) throws IOException
replaceObject in class ObjectOutputStreamIOExceptionprotected final boolean enableReplaceObject(boolean enable)
throws SecurityException
enableReplaceObject in class ObjectOutputStreamSecurityExceptionprotected final void writeStreamHeader()
throws IOException
writeStreamHeader in class ObjectOutputStreamIOExceptionprotected final void writeClassDescriptor(ObjectStreamClass desc) throws IOException
writeClassDescriptor in class ObjectOutputStreamIOExceptionprotected final void drain()
throws IOException
drain in class ObjectOutputStreamIOExceptionpublic abstract void writeFields()
throws IOException
writeFields in class ObjectOutputStreamIOExceptionpublic abstract ObjectOutputStream.PutField putFields() throws IOException
putFields in class ObjectOutputStreamIOExceptionpublic abstract void defaultWriteObject()
throws IOException
defaultWriteObject in class ObjectOutputStreamIOExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.