| Package | Description |
|---|---|
| net.morimekta.providence.serializer |
| Modifier and Type | Method and Description |
|---|---|
protected void |
PJsonSerializer.appendMessage(net.morimekta.util.json.JsonWriter writer,
PMessage<?> message) |
protected void |
PJsonSerializer.appendPrimitive(net.morimekta.util.json.JsonWriter writer,
Object primitive)
Append a primitive value to json struct.
|
protected void |
PJsonSerializer.appendPrimitiveKey(net.morimekta.util.json.JsonWriter writer,
Object primitive) |
protected void |
PJsonSerializer.appendTypedValue(net.morimekta.util.json.JsonWriter writer,
PDescriptor type,
Object value) |
protected void |
PBinarySerializer.consumeMessage(net.morimekta.util.io.BinaryReader in)
Consume a message from the stream without parsing the content into a message.
|
<T> T |
PJsonSerializer.deserialize(InputStream input,
PDescriptor<T> type) |
<T> T |
PBinarySerializer.deserialize(InputStream input,
PDescriptor<T> descriptor) |
abstract <T> T |
PSerializer.deserialize(InputStream input,
PDescriptor<T> descriptor) |
<T> T |
PProtoSerializer.deserialize(InputStream input,
PDescriptor<T> descriptor) |
<T> T |
PFastBinarySerializer.deserialize(InputStream is,
PDescriptor<T> descriptor) |
int |
PBinarySerializer.FieldInfo.getNumericBytes() |
protected <T extends PMessage<T>> |
PJsonSerializer.parseCompactMessage(net.morimekta.util.json.JsonTokenizer tokenizer,
PStructDescriptor<T,?> type)
Parse JSON object as a message.
|
protected Object |
PJsonSerializer.parseMapKey(String key,
PDescriptor keyType) |
protected <T extends PMessage<T>> |
PJsonSerializer.parseMessage(net.morimekta.util.json.JsonTokenizer tokenizer,
PStructDescriptor<T,?> type)
Parse JSON object as a message.
|
protected <T> T |
PJsonSerializer.parseTypedValue(net.morimekta.util.json.JsonToken token,
net.morimekta.util.json.JsonTokenizer tokenizer,
PDescriptor<T> t) |
protected PBinarySerializer.FieldInfo |
PBinarySerializer.readEntryFieldInfo(net.morimekta.util.io.BinaryReader in,
int fieldId) |
protected PBinarySerializer.FieldInfo |
PBinarySerializer.readFieldInfo(net.morimekta.util.io.BinaryReader in)
Read field info from stream.
|
protected <T> T |
PProtoSerializer.readFieldValue(net.morimekta.util.io.BinaryReader in,
int type,
PDescriptor<T> descriptor)
Read a field value from stream.
|
protected <T> T |
PFastBinarySerializer.readFieldValue(net.morimekta.util.io.BinaryReader in,
int type,
PDescriptor<T> descriptor)
Read a field value from stream.
|
protected <T> T |
PBinarySerializer.readFieldValue(net.morimekta.util.io.BinaryReader in,
PBinarySerializer.FieldInfo fieldInfo,
PDescriptor<T> type)
Read a field value from stream.
|
<T> int |
PJsonSerializer.serialize(OutputStream output,
PDescriptor<T> descriptor,
T value) |
<T> int |
PBinarySerializer.serialize(OutputStream output,
PDescriptor<T> descriptor,
T value) |
abstract <T> int |
PSerializer.serialize(OutputStream output,
PDescriptor<T> descriptor,
T value) |
<T> int |
PProtoSerializer.serialize(OutputStream output,
PDescriptor<T> descriptor,
T value) |
<T> int |
PFastBinarySerializer.serialize(OutputStream os,
PDescriptor<T> descriptor,
T value) |
int |
PJsonSerializer.serialize(OutputStream output,
PMessage<?> message) |
int |
PBinarySerializer.serialize(OutputStream output,
PMessage<?> message) |
abstract int |
PSerializer.serialize(OutputStream output,
PMessage<?> message) |
int |
PProtoSerializer.serialize(OutputStream output,
PMessage<?> message) |
int |
PFastBinarySerializer.serialize(OutputStream os,
PMessage<?> message) |
protected int |
PProtoSerializer.writeFieldValue(net.morimekta.util.io.BinaryWriter out,
int tag,
PDescriptor<?> descriptor,
Object value)
Write a field value to stream.
|
protected int |
PBinarySerializer.writeFieldValue(net.morimekta.util.io.BinaryWriter out,
Object value)
Write a field value to stream.
|
protected int |
PProtoSerializer.writeMessage(net.morimekta.util.io.BinaryWriter writer,
PMessage<?> message) |
protected int |
PFastBinarySerializer.writeMessage(net.morimekta.util.io.BinaryWriter out,
PMessage<?> message) |
Copyright © 2016. All rights reserved.