public final class ProtoStreamWriterImpl extends Object implements MessageMarshaller.ProtoStreamWriter
Constructor and Description |
---|
ProtoStreamWriterImpl(SerializationContext ctx) |
Modifier and Type | Method and Description |
---|---|
void |
write(com.google.protobuf.CodedOutputStream out,
Object t) |
<T> void |
writeArray(String fieldName,
T[] array,
Class<T> clazz) |
void |
writeBoolean(String fieldName,
boolean value) |
void |
writeBoolean(String fieldName,
Boolean value) |
void |
writeBytes(String fieldName,
byte[] value) |
<T> void |
writeCollection(String fieldName,
Collection<T> collection,
Class<T> clazz) |
void |
writeDouble(String fieldName,
double value) |
void |
writeDouble(String fieldName,
Double value) |
void |
writeFloat(String fieldName,
float value) |
void |
writeFloat(String fieldName,
Float value) |
void |
writeInt(String fieldName,
int value) |
void |
writeInt(String fieldName,
Integer value) |
void |
writeLong(String fieldName,
long value) |
void |
writeLong(String fieldName,
Long value) |
void |
writeObject(String fieldName,
Object value,
Class clazz) |
void |
writeString(String fieldName,
String value) |
public ProtoStreamWriterImpl(SerializationContext ctx)
public void write(com.google.protobuf.CodedOutputStream out, Object t) throws IOException
IOException
public void writeInt(String fieldName, Integer value) throws IOException
writeInt
in interface MessageMarshaller.ProtoStreamWriter
IOException
public void writeInt(String fieldName, int value) throws IOException
writeInt
in interface MessageMarshaller.ProtoStreamWriter
IOException
public void writeLong(String fieldName, long value) throws IOException
writeLong
in interface MessageMarshaller.ProtoStreamWriter
IOException
public void writeLong(String fieldName, Long value) throws IOException
writeLong
in interface MessageMarshaller.ProtoStreamWriter
IOException
public void writeDouble(String fieldName, double value) throws IOException
writeDouble
in interface MessageMarshaller.ProtoStreamWriter
IOException
public void writeDouble(String fieldName, Double value) throws IOException
writeDouble
in interface MessageMarshaller.ProtoStreamWriter
IOException
public void writeFloat(String fieldName, float value) throws IOException
writeFloat
in interface MessageMarshaller.ProtoStreamWriter
IOException
public void writeFloat(String fieldName, Float value) throws IOException
writeFloat
in interface MessageMarshaller.ProtoStreamWriter
IOException
public void writeBoolean(String fieldName, boolean value) throws IOException
writeBoolean
in interface MessageMarshaller.ProtoStreamWriter
IOException
public void writeBoolean(String fieldName, Boolean value) throws IOException
writeBoolean
in interface MessageMarshaller.ProtoStreamWriter
IOException
public void writeString(String fieldName, String value) throws IOException
writeString
in interface MessageMarshaller.ProtoStreamWriter
IOException
public void writeBytes(String fieldName, byte[] value) throws IOException
writeBytes
in interface MessageMarshaller.ProtoStreamWriter
IOException
public void writeObject(String fieldName, Object value, Class clazz) throws IOException
writeObject
in interface MessageMarshaller.ProtoStreamWriter
IOException
public <T> void writeCollection(String fieldName, Collection<T> collection, Class<T> clazz) throws IOException
writeCollection
in interface MessageMarshaller.ProtoStreamWriter
IOException
public <T> void writeArray(String fieldName, T[] array, Class<T> clazz) throws IOException
writeArray
in interface MessageMarshaller.ProtoStreamWriter
IOException
Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.