Closeable, DataOutput, Flushable, ObjectOutput, ObjectStreamConstants, AutoCloseable, ByteOutput, Marshaller, ExtendedObjectStreamConstantspublic final class BlockMarshaller extends Object implements Marshaller, ExtendedObjectStreamConstants
TC_CLASSTABLEDESC, TC_OBJECTTABLEbaseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, SERIAL_FILTER_PERMISSION, 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 and Type | Method | Description |
|---|---|---|
void |
clearClassCache() |
Discard the class cache.
|
void |
clearInstanceCache() |
Discard the instance cache.
|
void |
close() |
|
void |
finish() |
Finish marshalling to a stream.
|
void |
flush() |
|
void |
start(ByteOutput newOutput) |
Begin marshalling to a stream.
|
void |
write(byte[] b) |
Write all the bytes from the given array to the stream.
|
void |
write(byte[] bytes,
int off,
int len) |
Write some of the bytes from the given array to the stream.
|
void |
write(int v) |
Writes to the output stream the eight low-order bits of the argument
b. |
void |
writeBoolean(boolean v) |
|
void |
writeByte(int v) |
|
void |
writeBytes(String s) |
|
void |
writeChar(int v) |
|
void |
writeChars(String s) |
|
void |
writeDouble(double v) |
|
void |
writeFloat(float v) |
|
void |
writeInt(int v) |
|
void |
writeLong(long v) |
|
void |
writeObject(Object obj) |
|
void |
writeObjectUnshared(Object obj) |
Write an object to the underlying storage or stream as a new instance.
|
void |
writeShort(int v) |
|
void |
writeUTF(String s) |
public void start(ByteOutput newOutput) throws IOException
Marshallerstart in interface MarshallernewOutput - the new streamIOException - if an error occurs during setup, such as an error writing the headerpublic void clearInstanceCache()
throws IOException
MarshallerclearInstanceCache in interface MarshallerIOException - if an error occurspublic void clearClassCache()
throws IOException
MarshallerclearClassCache in interface MarshallerIOException - if an error occurspublic void finish()
throws IOException
MarshallerMarshaller.start(ByteOutput) method is again invoked.finish in interface MarshallerIOException - if an error occurspublic void writeObject(Object obj) throws IOException
writeObject in interface ObjectOutputIOExceptionpublic void writeObjectUnshared(Object obj) throws IOException
MarshallerwriteObjectUnshared in interface Marshallerobj - the object to be writtenIOException - if an error occurspublic void write(int v)
throws IOException
ByteOutputb. The 24 high-order bits of
b are ignored.write in interface ByteOutputwrite in interface DataOutputwrite in interface ObjectOutputv - the byte to writeIOException - if an error occurspublic void write(byte[] b)
throws IOException
ByteOutputwrite in interface ByteOutputwrite in interface DataOutputwrite in interface ObjectOutputb - the byte arrayIOException - if an error occurspublic void write(byte[] bytes,
int off,
int len)
throws IOException
ByteOutputwrite in interface ByteOutputwrite in interface DataOutputwrite in interface ObjectOutputbytes - the byte arrayoff - the index to start writing fromlen - the number of bytes to writeIOException - if an error occurspublic void writeBoolean(boolean v)
throws IOException
writeBoolean in interface DataOutputIOExceptionpublic void writeByte(int v)
throws IOException
writeByte in interface DataOutputIOExceptionpublic void writeShort(int v)
throws IOException
writeShort in interface DataOutputIOExceptionpublic void writeChar(int v)
throws IOException
writeChar in interface DataOutputIOExceptionpublic void writeInt(int v)
throws IOException
writeInt in interface DataOutputIOExceptionpublic void writeLong(long v)
throws IOException
writeLong in interface DataOutputIOExceptionpublic void writeFloat(float v)
throws IOException
writeFloat in interface DataOutputIOExceptionpublic void writeDouble(double v)
throws IOException
writeDouble in interface DataOutputIOExceptionpublic void writeBytes(String s) throws IOException
writeBytes in interface DataOutputIOExceptionpublic void writeChars(String s) throws IOException
writeChars in interface DataOutputIOExceptionpublic void writeUTF(String s) throws IOException
writeUTF in interface DataOutputIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in interface ObjectOutputIOExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in interface ObjectOutputIOExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.