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
IOExceptionpublic void writeInt(String fieldName, Integer value) throws IOException
writeInt in interface MessageMarshaller.ProtoStreamWriterIOExceptionpublic void writeInt(String fieldName, int value) throws IOException
writeInt in interface MessageMarshaller.ProtoStreamWriterIOExceptionpublic void writeLong(String fieldName, long value) throws IOException
writeLong in interface MessageMarshaller.ProtoStreamWriterIOExceptionpublic void writeLong(String fieldName, Long value) throws IOException
writeLong in interface MessageMarshaller.ProtoStreamWriterIOExceptionpublic void writeDouble(String fieldName, double value) throws IOException
writeDouble in interface MessageMarshaller.ProtoStreamWriterIOExceptionpublic void writeDouble(String fieldName, Double value) throws IOException
writeDouble in interface MessageMarshaller.ProtoStreamWriterIOExceptionpublic void writeFloat(String fieldName, float value) throws IOException
writeFloat in interface MessageMarshaller.ProtoStreamWriterIOExceptionpublic void writeFloat(String fieldName, Float value) throws IOException
writeFloat in interface MessageMarshaller.ProtoStreamWriterIOExceptionpublic void writeBoolean(String fieldName, boolean value) throws IOException
writeBoolean in interface MessageMarshaller.ProtoStreamWriterIOExceptionpublic void writeBoolean(String fieldName, Boolean value) throws IOException
writeBoolean in interface MessageMarshaller.ProtoStreamWriterIOExceptionpublic void writeString(String fieldName, String value) throws IOException
writeString in interface MessageMarshaller.ProtoStreamWriterIOExceptionpublic void writeBytes(String fieldName, byte[] value) throws IOException
writeBytes in interface MessageMarshaller.ProtoStreamWriterIOExceptionpublic void writeObject(String fieldName, Object value, Class clazz) throws IOException
writeObject in interface MessageMarshaller.ProtoStreamWriterIOExceptionpublic <T> void writeCollection(String fieldName, Collection<T> collection, Class<T> clazz) throws IOException
writeCollection in interface MessageMarshaller.ProtoStreamWriterIOExceptionpublic <T> void writeArray(String fieldName, T[] array, Class<T> clazz) throws IOException
writeArray in interface MessageMarshaller.ProtoStreamWriterIOExceptionCopyright © 2016 JBoss, a division of Red Hat. All rights reserved.