public static interface MessageMarshaller.ProtoStreamWriter
| Modifier and Type | Method and Description |
|---|---|
ImmutableSerializationContext |
getSerializationContext()
During reading, a marshaller can obtain the current
ImmutableSerializationContext and use it in order
to access the schema or marshaller information. |
<E> void |
writeArray(String fieldName,
E[] array,
Class<? extends E> elementClass) |
void |
writeBoolean(String fieldName,
boolean value) |
void |
writeBoolean(String fieldName,
Boolean value) |
void |
writeBooleans(String fieldName,
boolean[] values) |
void |
writeBytes(String fieldName,
byte[] value) |
void |
writeBytes(String fieldName,
InputStream input) |
<E> void |
writeCollection(String fieldName,
Collection<? super E> collection,
Class<E> elementClass) |
void |
writeDate(String fieldName,
Date value) |
void |
writeDouble(String fieldName,
double value) |
void |
writeDouble(String fieldName,
Double value) |
void |
writeDoubles(String fieldName,
double[] values) |
<E extends Enum<E>> |
writeEnum(String fieldName,
E value)
Writes an enum value.
|
<E extends Enum<E>> |
writeEnum(String fieldName,
E value,
Class<E> clazz)
Deprecated.
replaced by
writeEnum(String fieldName, Enum value) |
void |
writeFloat(String fieldName,
float value) |
void |
writeFloat(String fieldName,
Float value) |
void |
writeFloats(String fieldName,
float[] values) |
void |
writeInstant(String fieldName,
Instant value) |
void |
writeInt(String fieldName,
int value) |
void |
writeInt(String fieldName,
Integer value) |
void |
writeInts(String fieldName,
int[] values) |
void |
writeLong(String fieldName,
long value) |
void |
writeLong(String fieldName,
Long value) |
void |
writeLongs(String fieldName,
long[] values) |
<E> void |
writeObject(String fieldName,
E value,
Class<? extends E> clazz) |
void |
writeString(String fieldName,
String value) |
ImmutableSerializationContext getSerializationContext()
ImmutableSerializationContext and use it in order
to access the schema or marshaller information.void writeInt(String fieldName, int value) throws IOException
IOExceptionvoid writeInt(String fieldName, Integer value) throws IOException
IOExceptionvoid writeInts(String fieldName, int[] values) throws IOException
IOExceptionvoid writeLong(String fieldName, long value) throws IOException
IOExceptionvoid writeLong(String fieldName, Long value) throws IOException
IOExceptionvoid writeLongs(String fieldName, long[] values) throws IOException
IOExceptionvoid writeDate(String fieldName, Date value) throws IOException
IOExceptionvoid writeInstant(String fieldName, Instant value) throws IOException
IOExceptionvoid writeDouble(String fieldName, double value) throws IOException
IOExceptionvoid writeDouble(String fieldName, Double value) throws IOException
IOExceptionvoid writeDoubles(String fieldName, double[] values) throws IOException
IOExceptionvoid writeFloat(String fieldName, float value) throws IOException
IOExceptionvoid writeFloat(String fieldName, Float value) throws IOException
IOExceptionvoid writeFloats(String fieldName, float[] values) throws IOException
IOExceptionvoid writeBoolean(String fieldName, boolean value) throws IOException
IOExceptionvoid writeBoolean(String fieldName, Boolean value) throws IOException
IOExceptionvoid writeBooleans(String fieldName, boolean[] values) throws IOException
IOExceptionvoid writeString(String fieldName, String value) throws IOException
IOExceptionvoid writeBytes(String fieldName, byte[] value) throws IOException
IOExceptionvoid writeBytes(String fieldName, InputStream input) throws IOException
IOException<E> void writeObject(String fieldName, E value, Class<? extends E> clazz) throws IOException
IOException@Deprecated <E extends Enum<E>> void writeEnum(String fieldName, E value, Class<E> clazz) throws IOException
writeEnum(String fieldName, Enum value)class was never used internally) so this variant is now
deprecated.IOException<E extends Enum<E>> void writeEnum(String fieldName, E value) throws IOException
fieldName - the field namevalue - the enum valueIOException<E> void writeCollection(String fieldName, Collection<? super E> collection, Class<E> elementClass) throws IOException
IOException<E> void writeArray(String fieldName, E[] array, Class<? extends E> elementClass) throws IOException
IOExceptionCopyright © 2020 JBoss, a division of Red Hat. All rights reserved.