public class ProtoStreamDataOutput extends Object implements DataOutput
DataOutput facade for a RawProtoStreamWriter allowing serializers to write protobuf messages.
This implementation intentionally does not conform to the binary layout prescribed by DataOutput.| Constructor and Description |
|---|
ProtoStreamDataOutput(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer) |
ProtoStreamDataOutput(ProtoStreamWriter writer) |
| Modifier and Type | Method and Description |
|---|---|
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 |
writeShort(int value) |
void |
writeUTF(String value) |
public ProtoStreamDataOutput(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamWriter writer)
public ProtoStreamDataOutput(ProtoStreamWriter writer)
public void write(int value)
throws IOException
write in interface DataOutputIOExceptionpublic void write(byte[] bytes)
throws IOException
write in interface DataOutputIOExceptionpublic void write(byte[] bytes,
int offset,
int length)
throws IOException
write in interface DataOutputIOExceptionpublic 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 DataOutputIOExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.