public class ProtoStreamObjectOutput extends Object implements ObjectOutput
ObjectOutput facade for a RawProtoStreamWriter allowing externalizers to write protobuf messages.
This implementation intentionally does not conform to the binary layout prescribed by ObjectOutput.| Constructor and Description |
|---|
ProtoStreamObjectOutput(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int offset,
int length) |
void |
write(int value) |
void |
writeBoolean(boolean value) |
void |
writeByte(int value) |
void |
writeBytes(String value) |
void |
writeChar(int value) |
void |
writeChars(String value) |
void |
writeDouble(double value) |
void |
writeFloat(float value) |
void |
writeInt(int value) |
void |
writeLong(long value) |
void |
writeObject(Object object) |
void |
writeShort(int value) |
void |
writeUTF(String value) |
public ProtoStreamObjectOutput(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer)
public void writeBoolean(boolean value)
throws IOException
writeBoolean in interface DataOutputIOExceptionpublic void writeByte(int value)
throws IOException
writeByte in interface DataOutputIOExceptionpublic void writeShort(int value)
throws IOException
writeShort in interface DataOutputIOExceptionpublic void writeChar(int value)
throws IOException
writeChar in interface DataOutputIOExceptionpublic void writeInt(int value)
throws IOException
writeInt in interface DataOutputIOExceptionpublic void writeLong(long value)
throws IOException
writeLong in interface DataOutputIOExceptionpublic void writeFloat(float value)
throws IOException
writeFloat in interface DataOutputIOExceptionpublic void writeDouble(double value)
throws IOException
writeDouble in interface DataOutputIOExceptionpublic void writeBytes(String value) throws IOException
writeBytes in interface DataOutputIOExceptionpublic void writeChars(String value) throws IOException
writeChars in interface DataOutputIOExceptionpublic void writeUTF(String value) throws IOException
writeUTF in interface DataOutputIOExceptionpublic void writeObject(Object object) throws IOException
writeObject in interface ObjectOutputIOExceptionpublic void write(int value)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputIOExceptionpublic void write(byte[] bytes)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputIOExceptionpublic void write(byte[] bytes,
int offset,
int length)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputIOExceptionpublic void flush()
throws IOException
flush in interface ObjectOutputIOExceptionpublic void close()
throws IOException
close in interface ObjectOutputclose in interface AutoCloseableIOExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.