Uses of Interface
io.protostuff.Schema
Packages that use Schema
-
Uses of Schema in io.protostuff
Classes in io.protostuff that implement SchemaModifier and TypeClassDescriptionclass
A schema for standard jdkcollections
.class
CustomSchema<T>
A schema (helper class) that wraps another schema and allows its subclasses to override certain methods for more customization.final class
A ByteArrayInput w/c can handle cyclic dependencies when deserializing objects with graph transformations.final class
A CodedInput w/c can handle cyclic dependencies when deserializing objects with graph transformations.class
MapSchema<K,
V> A schema for aMap
.final class
A schema for aCollection
withMessage
or pojo values.final class
MessageMapSchema<K,
V> static class
Pipe.Schema<T>
class
Fields in io.protostuff declared as SchemaModifier and TypeFieldDescriptionMapSchema.entrySchema
MessageMapSchema.kSchema
The schema of the message key.GraphByteArrayInput.lastSchema
GraphCodedInput.lastSchema
CustomSchema.schema
private Schema
<?> JsonOutput.schema
private Schema
<?> JsonXOutput.schema
private Schema
<?> KvpOutput.schema
MessageCollectionSchema.schema
The schema of the member (message).private Schema
<?> XmlOutput.schema
private Schema
<?> XmlXOutput.schema
private Schema
<?> YamlOutput.schema
final Schema
<?> UninitializedMessageException.targetSchema
MessageMapSchema.vSchema
The schema of the message value.StringMapSchema.vSchema
The schema of the message value.Pipe.Schema.wrappedSchema
Methods in io.protostuff that return SchemaModifier and TypeMethodDescriptionMessage.cachedSchema()
Gets the cached schema of this message.<T> Schema
<T> UninitializedMessageException.getTargetSchema()
Methods in io.protostuff with parameters of type SchemaModifier and TypeMethodDescription<T> void
ByteArrayInput.handleUnknownField
(int fieldNumber, Schema<T> schema) <T> void
ByteBufferInput.handleUnknownField
(int fieldNumber, Schema<T> schema) <T> void
CodedInput.handleUnknownField
(int fieldNumber, Schema<T> schema) <T> void
FilterInput.handleUnknownField
(int fieldNumber, Schema<T> schema) <T> void
GraphByteArrayInput.handleUnknownField
(int fieldNumber, Schema<T> schema) <T> void
GraphCodedInput.handleUnknownField
(int fieldNumber, Schema<T> schema) <T> void
Input.handleUnknownField
(int fieldNumber, Schema<T> schema) The underlying implementation should handle the unknown field.<T> void
JsonInput.handleUnknownField
(int fieldNumber, Schema<T> schema) <T> void
KvpByteArrayInput.handleUnknownField
(int fieldNumber, Schema<T> schema) <T> void
KvpInput.handleUnknownField
(int fieldNumber, Schema<T> schema) <T> void
XmlInput.handleUnknownField
(int fieldNumber, Schema<T> schema) static <T> int
GraphIOUtil.mergeDelimitedFrom
(DataInput in, T message, Schema<T> schema) Used by the code generated messages that implementExternalizable
.static <T> int
GraphIOUtil.mergeDelimitedFrom
(InputStream in, T message, Schema<T> schema) static <T> int
GraphIOUtil.mergeDelimitedFrom
(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) (package private) static <T> int
IOUtil.mergeDelimitedFrom
(DataInput in, T message, Schema<T> schema, boolean decodeNestedMessageAsGroup) Used by the code generated messages that implementExternalizable
.(package private) static <T> int
IOUtil.mergeDelimitedFrom
(InputStream in, byte[] buf, T message, Schema<T> schema, boolean decodeNestedMessageAsGroup) Thebuf
size limits the size of the message that must be read.(package private) static <T> int
IOUtil.mergeDelimitedFrom
(InputStream in, T message, Schema<T> schema, boolean decodeNestedMessageAsGroup) static <T> int
ProtobufIOUtil.mergeDelimitedFrom
(DataInput in, T message, Schema<T> schema) Used by the code generated messages that implementExternalizable
.static <T> int
ProtobufIOUtil.mergeDelimitedFrom
(InputStream in, T message, Schema<T> schema) static <T> int
ProtobufIOUtil.mergeDelimitedFrom
(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) static <T> int
ProtostuffIOUtil.mergeDelimitedFrom
(DataInput in, T message, Schema<T> schema) Used by the code generated messages that implementExternalizable
.static <T> int
ProtostuffIOUtil.mergeDelimitedFrom
(InputStream in, T message, Schema<T> schema) static <T> int
ProtostuffIOUtil.mergeDelimitedFrom
(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) static <T> void
Merges themessage
with the byte array using the givenschema
.static <T> void
Merges themessage
with the byte array using the givenschema
.static <T> void
GraphIOUtil.mergeFrom
(CodedInput input, T message, Schema<T> schema) static <T> void
GraphIOUtil.mergeFrom
(InputStream in, T message, Schema<T> schema) static <T> void
GraphIOUtil.mergeFrom
(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) (package private) static <T> void
IOUtil.mergeFrom
(byte[] data, int offset, int length, T message, Schema<T> schema, boolean decodeNestedMessageAsGroup) Merges themessage
with the byte array using the givenschema
.(package private) static <T> void
IOUtil.mergeFrom
(InputStream in, byte[] buf, T message, Schema<T> schema, boolean decodeNestedMessageAsGroup) (package private) static <T> void
IOUtil.mergeFrom
(InputStream in, T message, Schema<T> schema, boolean decodeNestedMessageAsGroup) static <T> void
JsonIOUtil.mergeFrom
(byte[] data, int offset, int length, T message, Schema<T> schema, boolean numeric) Merges themessage
with the byte array using the givenschema
.static <T> void
Merges themessage
with the byte array using the givenschema
.static <T> void
JsonIOUtil.mergeFrom
(com.fasterxml.jackson.core.JsonParser parser, T message, Schema<T> schema, boolean numeric) Merges themessage
from the JsonParser using the givenschema
.static <T> void
JsonIOUtil.mergeFrom
(InputStream in, T message, Schema<T> schema, boolean numeric) static <T> void
JsonIOUtil.mergeFrom
(InputStream in, T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) static <T> void
static <T> void
Merges themessage
with the byte array using the givenschema
.static <T> void
Merges themessage
with the byte array using the givenschema
.static <T> void
ProtobufIOUtil.mergeFrom
(InputStream in, T message, Schema<T> schema) static <T> void
ProtobufIOUtil.mergeFrom
(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) static <T> void
Merges themessage
with the byte array using the givenschema
.static <T> void
Merges themessage
with the byte array using the givenschema
.static <T> void
ProtostuffIOUtil.mergeFrom
(InputStream in, T message, Schema<T> schema) static <T> void
ProtostuffIOUtil.mergeFrom
(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) static <T> void
SmileIOUtil.mergeFrom
(byte[] data, int offset, int length, T message, Schema<T> schema, boolean numeric) Merges themessage
with the byte array using the givenschema
.static <T> void
Merges themessage
with the byte array using the givenschema
.static <T> void
SmileIOUtil.mergeFrom
(InputStream in, T message, Schema<T> schema, boolean numeric) static <T> void
SmileIOUtil.mergeFrom
(InputStream in, T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) static <T> void
Merges themessage
with the byte array using the givenschema
.static <T> void
XmlIOUtil.mergeFrom
(byte[] data, int offset, int len, T message, Schema<T> schema, XMLInputFactory inFactory) Merges themessage
with the byte array using the givenschema
.static <T> void
Merges themessage
with the byte array using the givenschema
.static <T> void
XmlIOUtil.mergeFrom
(InputStream in, T message, Schema<T> schema) static <T> void
XmlIOUtil.mergeFrom
(InputStream in, T message, Schema<T> schema, XMLInputFactory inFactory) static <T> void
static <T> void
XmlIOUtil.mergeFrom
(Reader r, T message, Schema<T> schema, XMLInputFactory inFactory) static <T> void
XmlIOUtil.mergeFrom
(XMLStreamReader parser, T message, Schema<T> schema) <T> T
ByteArrayInput.mergeObject
(T value, Schema<T> schema) <T> T
ByteBufferInput.mergeObject
(T value, Schema<T> schema) <T> T
CodedInput.mergeObject
(T value, Schema<T> schema) <T> T
FilterInput.mergeObject
(T value, Schema<T> schema) <T> T
GraphByteArrayInput.mergeObject
(T value, Schema<T> schema) <T> T
GraphCodedInput.mergeObject
(T value, Schema<T> schema) <T> T
Input.mergeObject
(T value, Schema<T> schema) Merges an object(with schema) field value.<T> T
JsonInput.mergeObject
(T value, Schema<T> schema) <T> T
KvpByteArrayInput.mergeObject
(T value, Schema<T> schema) <T> T
KvpInput.mergeObject
(T value, Schema<T> schema) <T> T
XmlInput.mergeObject
(T value, Schema<T> schema) private <T> T
ByteArrayInput.mergeObjectEncodedAsGroup
(T value, Schema<T> schema) private <T> T
ByteBufferInput.mergeObjectEncodedAsGroup
(T value, Schema<T> schema) private <T> T
CodedInput.mergeObjectEncodedAsGroup
(T value, Schema<T> schema) Reads a message field value from the stream (using thegroup
encoding).static <T> boolean
GraphIOUtil.optMergeDelimitedFrom
(InputStream in, T message, Schema<T> schema, boolean drainRemainingBytesIfTooLarge, LinkedBuffer buffer) Optimal/Optional mergeDelimitedFrom - If the message does not fit the buffer, no merge is done and this method will return false.static <T> boolean
GraphIOUtil.optMergeDelimitedFrom
(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) Optimal/Optional mergeDelimitedFrom - If the message does not fit the buffer, no merge is done and this method will return false.static <T> boolean
ProtobufIOUtil.optMergeDelimitedFrom
(InputStream in, T message, Schema<T> schema, boolean drainRemainingBytesIfTooLarge, LinkedBuffer buffer) Optimal/Optional mergeDelimitedFrom - If the message does not fit the buffer, no merge is done and this method will return false.static <T> boolean
ProtobufIOUtil.optMergeDelimitedFrom
(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) Optimal/Optional mergeDelimitedFrom - If the message does not fit the buffer, no merge is done and this method will return false.static <T> boolean
ProtostuffIOUtil.optMergeDelimitedFrom
(InputStream in, T message, Schema<T> schema, boolean drainRemainingBytesIfTooLarge, LinkedBuffer buffer) Optimal/Optional mergeDelimitedFrom - If the message does not fit the buffer, no merge is done and this method will return false.static <T> boolean
ProtostuffIOUtil.optMergeDelimitedFrom
(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) Optimal/Optional mergeDelimitedFrom - If the message does not fit the buffer, no merge is done and this method will return false.static <T> int
GraphIOUtil.optWriteDelimitedTo
(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Optimal writeDelimitedTo - The varint32 prefix is written to the buffer instead of directly writing to outputstream.static <T> int
ProtobufIOUtil.optWriteDelimitedTo
(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Optimal writeDelimitedTo - The varint32 prefix is written to the buffer instead of directly writing to outputstream.static <T> int
ProtostuffIOUtil.optWriteDelimitedTo
(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Optimal writeDelimitedTo - The varint32 prefix is written to the buffer instead of directly writing to outputstream.static <T> List
<T> JsonIOUtil.parseListFrom
(com.fasterxml.jackson.core.JsonParser parser, Schema<T> schema, boolean numeric) Parses themessages
from the parser using the givenschema
.static <T> List
<T> JsonIOUtil.parseListFrom
(InputStream in, Schema<T> schema, boolean numeric) Parses themessages
from the stream using the givenschema
.static <T> List
<T> JsonIOUtil.parseListFrom
(InputStream in, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Parses themessages
from the stream using the givenschema
.static <T> List
<T> JsonIOUtil.parseListFrom
(Reader reader, Schema<T> schema, boolean numeric) Parses themessages
from the reader using the givenschema
.static <T> List
<T> ProtobufIOUtil.parseListFrom
(InputStream in, Schema<T> schema) static <T> List
<T> ProtostuffIOUtil.parseListFrom
(InputStream in, Schema<T> schema) static <T> List
<T> SmileIOUtil.parseListFrom
(InputStream in, Schema<T> schema, boolean numeric) Parses themessages
from the stream using the givenschema
.static <T> List
<T> SmileIOUtil.parseListFrom
(InputStream in, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Parses themessages
from the stream using the givenschema
.static <T> List
<T> XmlIOUtil.parseListFrom
(InputStream in, Schema<T> schema) static <T> List
<T> XmlIOUtil.parseListFrom
(InputStream in, Schema<T> schema, XMLInputFactory inFactory) static <T> List
<T> XmlIOUtil.parseListFrom
(XMLStreamReader parser, Schema<T> schema) <T> int
ByteArrayInput.readFieldNumber
(Schema<T> schema) <T> int
ByteBufferInput.readFieldNumber
(Schema<T> schema) <T> int
CodedInput.readFieldNumber
(Schema<T> schema) <T> int
FilterInput.readFieldNumber
(Schema<T> schema) <T> int
GraphByteArrayInput.readFieldNumber
(Schema<T> schema) <T> int
GraphCodedInput.readFieldNumber
(Schema<T> schema) <T> int
Input.readFieldNumber
(Schema<T> schema) Reads the field number of a message/object tied to the givenschema
.<T> int
JsonInput.readFieldNumber
(Schema<T> schema) private <T> int
JsonInput.readFieldNumber
(Schema<T> schema, com.fasterxml.jackson.core.JsonParser parser) <T> int
KvpByteArrayInput.readFieldNumber
(Schema<T> schema) <T> int
KvpInput.readFieldNumber
(Schema<T> schema) <T> int
XmlInput.readFieldNumber
(Schema<T> schema) static <T> byte[]
GraphIOUtil.toByteArray
(T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessage
into a byte array using the given schema.static <T> byte[]
JsonIOUtil.toByteArray
(T message, Schema<T> schema, boolean numeric) Serializes themessage
into a byte array using the givenschema
.static <T> byte[]
JsonIOUtil.toByteArray
(T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Serializes themessage
into a byte array using the givenschema
.static <T> byte[]
JsonXIOUtil.toByteArray
(T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) static <T> byte[]
ProtobufIOUtil.toByteArray
(T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessage
into a byte array using the given schema.static <T> byte[]
ProtostuffIOUtil.toByteArray
(T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessage
into a byte array using the given schema.static <T> byte[]
SmileIOUtil.toByteArray
(T message, Schema<T> schema, boolean numeric) Serializes themessage
into a byte array using the givenschema
.static <T> byte[]
SmileIOUtil.toByteArray
(T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Serializes themessage
into a byte array using the givenschema
.static <T> byte[]
XmlIOUtil.toByteArray
(T message, Schema<T> schema) Serializes themessage
into a byte array.static <T> byte[]
XmlIOUtil.toByteArray
(T message, Schema<T> schema, XMLOutputFactory outFactory) Serializes themessage
into a byte array.static <T> byte[]
XmlXIOUtil.toByteArray
(T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessage
into a byte array using the given schema.static <T> byte[]
YamlIOUtil.toByteArray
(T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessage
into a byte array with the supplied buffer.void
JsonOutput.updateLast
(Schema<?> schema, Schema<?> lastSchema) void
JsonXOutput.updateLast
(Schema<?> schema, Schema<?> lastSchema) void
StatefulOutput.updateLast
(Schema<?> schema, Schema<?> lastSchema) Updates the schema iflastSchema
was indeed the last schema used.void
XmlOutput.updateLast
(Schema<?> schema, Schema<?> lastSchema) void
XmlXOutput.updateLast
(Schema<?> schema, Schema<?> lastSchema) void
YamlOutput.updateLast
(Schema<?> schema, Schema<?> lastSchema) Before serializing a message/object tied to a schema, this should be called.Before serializing a message/object tied to a schema, this should be called.Before serializing a message/object tied to a schema, this should be called.Before serializing a message/object tied to a schema, this should be called.static <T> int
GraphIOUtil.writeDelimitedTo
(DataOutput out, T message, Schema<T> schema) Used by the code generated messages that implementExternalizable
.static <T> int
GraphIOUtil.writeDelimitedTo
(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessage
, prefixed with its length, into anOutputStream
.static <T> int
ProtobufIOUtil.writeDelimitedTo
(DataOutput out, T message, Schema<T> schema) Used by the code generated messages that implementExternalizable
.static <T> int
ProtobufIOUtil.writeDelimitedTo
(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessage
, prefixed with its length, into anOutputStream
.static <T> int
ProtostuffIOUtil.writeDelimitedTo
(DataOutput out, T message, Schema<T> schema) Used by the code generated messages that implementExternalizable
.static <T> int
ProtostuffIOUtil.writeDelimitedTo
(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessage
, prefixed with its length, into anOutputStream
.static <T> void
JsonIOUtil.writeListTo
(com.fasterxml.jackson.core.JsonGenerator generator, List<T> messages, Schema<T> schema, boolean numeric) Serializes themessages
into the generator using the given schema.static <T> void
JsonIOUtil.writeListTo
(OutputStream out, List<T> messages, Schema<T> schema, boolean numeric) Serializes themessages
into the stream using the given schema.static <T> void
JsonIOUtil.writeListTo
(OutputStream out, List<T> messages, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Serializes themessages
into the stream using the given schema.static <T> void
JsonIOUtil.writeListTo
(Writer writer, List<T> messages, Schema<T> schema, boolean numeric) Serializes themessages
into the writer using the given schema.static <T> void
JsonXIOUtil.writeListTo
(LinkedBuffer buffer, List<T> messages, Schema<T> schema, boolean numeric) Serializes themessages
into theLinkedBuffer
using the given schema.static <T> void
JsonXIOUtil.writeListTo
(OutputStream out, List<T> messages, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Serializes themessages
into the stream using the given schema with the supplied buffer.static <T> int
ProtobufIOUtil.writeListTo
(OutputStream out, List<T> messages, Schema<T> schema, LinkedBuffer buffer) Serializes themessages
(delimited) into anOutputStream
using the given schema.static <T> int
ProtostuffIOUtil.writeListTo
(OutputStream out, List<T> messages, Schema<T> schema, LinkedBuffer buffer) Serializes themessages
(delimited) into anOutputStream
using the given schema.static <T> void
SmileIOUtil.writeListTo
(OutputStream out, List<T> messages, Schema<T> schema, boolean numeric) Serializes themessages
into the stream using the given schema.static <T> void
SmileIOUtil.writeListTo
(OutputStream out, List<T> messages, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Serializes themessages
into the stream using the given schema.static <T> void
XmlIOUtil.writeListTo
(OutputStream out, List<T> messages, Schema<T> schema) Serializes themessages
into theOutputStream
using the given schema.static <T> void
XmlIOUtil.writeListTo
(OutputStream out, List<T> messages, Schema<T> schema, XMLOutputFactory outFactory) Serializes themessages
into theOutputStream
using the given schema.static <T> void
XmlIOUtil.writeListTo
(XMLStreamWriter writer, List<T> messages, Schema<T> schema) Serializes themessages
into theXMLStreamWriter
using the given schema.static <T> int
YamlIOUtil.writeListTo
(LinkedBuffer buffer, List<T> messages, Schema<T> schema) Serializes themessages
aLinkedBuffer
using the given schema.static <T> int
YamlIOUtil.writeListTo
(OutputStream out, List<T> messages, Schema<T> schema, LinkedBuffer buffer) Serializes themessages
into anOutputStream
using the given schema with the supplied buffer.<T> void
FilterOutput.writeObject
(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> void
GraphProtostuffOutput.writeObject
(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> void
JsonOutput.writeObject
(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> void
JsonXOutput.writeObject
(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> void
KvpOutput.writeObject
(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> void
LowCopyProtobufOutput.writeObject
(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> void
LowCopyProtostuffOutput.writeObject
(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> void
Output.writeObject
(int fieldNumber, T value, Schema<T> schema, boolean repeated) Writes an object(using its schema) field.<T> void
ProtobufOutput.writeObject
(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> void
ProtostuffOutput.writeObject
(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> void
XmlOutput.writeObject
(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> void
XmlXOutput.writeObject
(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> void
YamlOutput.writeObject
(int fieldNumber, T value, Schema<T> schema, boolean repeated) static <T> int
GraphIOUtil.writeTo
(LinkedBuffer buffer, T message, Schema<T> schema) Writes themessage
into theLinkedBuffer
using the given schema.static <T> int
GraphIOUtil.writeTo
(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessage
into anOutputStream
using the given schema.static <T> void
JsonIOUtil.writeTo
(com.fasterxml.jackson.core.JsonGenerator generator, T message, Schema<T> schema, boolean numeric) Serializes themessage
into a JsonGenerator using the givenschema
.static <T> void
JsonIOUtil.writeTo
(OutputStream out, T message, Schema<T> schema, boolean numeric) static <T> void
JsonIOUtil.writeTo
(OutputStream out, T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) static <T> void
static <T> void
JsonXIOUtil.writeTo
(LinkedBuffer buffer, T message, Schema<T> schema, boolean numeric) Serializes themessage
into aLinkedBuffer
viaJsonXOutput
using the givenschema
with the supplied buffer.static <T> void
JsonXIOUtil.writeTo
(OutputStream out, T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) static <T> int
ProtobufIOUtil.writeTo
(LinkedBuffer buffer, T message, Schema<T> schema) Writes themessage
into theLinkedBuffer
using the given schema.static <T> int
ProtobufIOUtil.writeTo
(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessage
into anOutputStream
using the given schema.static <T> int
ProtostuffIOUtil.writeTo
(LinkedBuffer buffer, T message, Schema<T> schema) Writes themessage
into theLinkedBuffer
using the given schema.static <T> int
ProtostuffIOUtil.writeTo
(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessage
into anOutputStream
using the given schema.static <T> void
SmileIOUtil.writeTo
(OutputStream out, T message, Schema<T> schema, boolean numeric) static <T> void
SmileIOUtil.writeTo
(OutputStream out, T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) static <T> void
XmlIOUtil.writeTo
(OutputStream out, T message, Schema<T> schema) static <T> void
XmlIOUtil.writeTo
(OutputStream out, T message, Schema<T> schema, XMLOutputFactory outFactory) static <T> void
static <T> void
XmlIOUtil.writeTo
(Writer w, T message, Schema<T> schema, XMLOutputFactory outFactory) static <T> void
XmlIOUtil.writeTo
(XMLStreamWriter writer, T message, Schema<T> schema) static <T> int
XmlXIOUtil.writeTo
(LinkedBuffer buffer, T message, Schema<T> schema) Writes themessage
into theLinkedBuffer
using the given schema.static <T> int
XmlXIOUtil.writeTo
(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessage
into anOutputStream
using the given schema.static <T> int
YamlIOUtil.writeTo
(LinkedBuffer buffer, T message, Schema<T> schema) Serializes themessage
into theLinkedBuffer
.static <T> int
YamlIOUtil.writeTo
(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessage
into anOutputStream
with the supplied buffer.Constructors in io.protostuff with parameters of type SchemaModifierConstructorDescriptionCustomSchema
(Schema<T> schema) JsonOutput
(com.fasterxml.jackson.core.JsonGenerator generator, boolean numeric, Schema<?> schema) JsonXOutput
(LinkedBuffer head, boolean numeric, Schema<?> schema) JsonXOutput
(LinkedBuffer head, OutputStream out, boolean numeric, Schema<?> schema) JsonXOutput
(LinkedBuffer head, OutputStream out, WriteSession.FlushHandler flushHandler, int nextBufferSize, boolean numeric, Schema<?> schema) KvpOutput
(LinkedBuffer head, Schema<?> schema, boolean numeric) KvpOutput
(LinkedBuffer head, OutputStream out, Schema<?> schema, boolean numeric) MessageCollectionSchema
(Schema<V> schema, boolean preserveNull) MessageCollectionSchema
(Schema<V> schema, Pipe.Schema<V> pipeSchema, boolean preserveNull) MessageMapSchema
(Schema<K> kSchema, Schema<V> vSchema) MessageMapSchema
(Schema<K> kSchema, Schema<V> vSchema, Pipe.Schema<K> kPipeSchema, Pipe.Schema<V> vPipeSchema) StringMapSchema
(Schema<V> vSchema) StringMapSchema
(Schema<V> vSchema, Pipe.Schema<V> vPipeSchema) UninitializedMessageException
(Object targetMessage, Schema<?> targetSchema) UninitializedMessageException
(String msg, Object targetMessage, Schema<?> targetSchema) XmlOutput
(XMLStreamWriter writer, Schema<?> schema) XmlXOutput
(LinkedBuffer head, Schema<?> schema) XmlXOutput
(LinkedBuffer head, OutputStream out, Schema<?> schema) XmlXOutput
(LinkedBuffer head, OutputStream out, WriteSession.FlushHandler flushHandler, int nextBufferSize, Schema<?> schema) YamlOutput
(LinkedBuffer buffer, Schema<?> schema) YamlOutput
(LinkedBuffer buffer, OutputStream out, Schema<?> schema) YamlOutput
(LinkedBuffer buffer, OutputStream out, WriteSession.FlushHandler flushHandler, int nextBufferSize, Schema<?> schema) -
Uses of Schema in io.protostuff.runtime
Classes in io.protostuff.runtime that implement SchemaModifier and TypeClassDescriptionclass
Used when a field is an array (Object[] or any polymorphic component type).static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
class
Used when a field is declared asClass<?>
(with or with-out generics).class
This schema delegates to another schema derived from the input.class
Used when the type isNumber
.class
A schema for dynamic types (fields where the type isObject
).class
Used when the type is an interface (Collection/List/Set/SortedSet).class
Used when a field is declared asEnum<?>
(with or with-out generics).class
Used when the type is an interface (Map/SortedMap).class
Will be used ifRuntimeEnv.POJO_SCHEMA_ON_COLLECTION_FIELDS
is enabled and the field is assignable from Collection.class
Placeholder for annotated interface/object fields configured to use this.class
Will be used if eitherRuntimeEnv.POJO_SCHEMA_ON_COLLECTION_FIELDS
orRuntimeEnv.POJO_SCHEMA_ON_MAP_FIELDS
is set.class
Used when the type is either polymorphic or too complex.class
Used when the type is assignable fromThrowable
.final class
Runtime pipe schema.final class
A schema that can be generated and cached at runtime for objects that have no schema.static class
The base schema used by the built-in factories.static class
Fields in io.protostuff.runtime declared as SchemaModifier and TypeFieldDescriptionIdStrategy.ARRAY_SCHEMA
IdStrategy.CLASS_SCHEMA
(package private) final Schema
<Collection<Object>> IdStrategy.COLLECTION_SCHEMA
IdStrategy.DYNAMIC_VALUE_SCHEMA
IdStrategy.ENTRY_SCHEMA
IdStrategy.MAP_SCHEMA
IdStrategy.OBJECT_SCHEMA
IdStrategy.POLYMORPHIC_COLLECTION_SCHEMA
IdStrategy.POLYMORPHIC_MAP_SCHEMA
DefaultIdStrategy.Lazy.schema
DefaultIdStrategy.LazyRegister.schema
DefaultIdStrategy.Registered.schema
ExplicitIdStrategy.Lazy.schema
ExplicitIdStrategy.Registered.schema
IncrementalIdStrategy.LazyRegister.schema
IncrementalIdStrategy.Registered.schema
Methods in io.protostuff.runtime that return SchemaModifier and TypeMethodDescription<T> Schema
<T> RuntimeView.Factory.create
(RuntimeSchema<T> ms, RuntimeEnv.Instantiator<T> instantiator, Predicate.Factory pf, String[] args) Creates a view schema based from the given metadata.static <T> Schema
<T> RuntimeView.createFrom
(RuntimeSchema<T> ms, RuntimeEnv.Instantiator<T> instantiator, RuntimeView.Factory vf, Predicate.Factory pf, String... args) Returns a new view schema based from an existing one.static <T> Schema
<T> RuntimeView.createFrom
(RuntimeSchema<T> rs, RuntimeView.Factory vf, Predicate.Factory pf, String... args) Returns a new view schema based from an existing one.DefaultIdStrategy.Lazy.getSchema()
DefaultIdStrategy.LazyRegister.getSchema()
DefaultIdStrategy.Mapped.getSchema()
DefaultIdStrategy.Registered.getSchema()
ExplicitIdStrategy.Lazy.getSchema()
ExplicitIdStrategy.Registered.getSchema()
HasSchema.getSchema()
Gets the schema.IncrementalIdStrategy.LazyRegister.getSchema()
IncrementalIdStrategy.Registered.getSchema()
RuntimeMessageField.getSchema()
Returns the schema.static <T> Schema
<T> Gets the schema that was either registered or lazily initialized at runtime.static <T> Schema
<T> RuntimeSchema.getSchema
(Class<T> typeClass, IdStrategy strategy) Gets the schema that was either registered or lazily initialized at runtime.protected <T> Schema
<T> Generates a schema from the given class.protected <T> Schema
<T> DefaultIdStrategy.writeMessageIdTo
(Output output, int fieldNumber, Message<T> message) protected <T> Schema
<T> ExplicitIdStrategy.writeMessageIdTo
(Output output, int fieldNumber, Message<T> message) protected abstract <T> Schema
<T> IdStrategy.writeMessageIdTo
(Output output, int fieldNumber, Message<T> message) protected <T> Schema
<T> IncrementalIdStrategy.writeMessageIdTo
(Output output, int fieldNumber, Message<T> message) Methods in io.protostuff.runtime with parameters of type SchemaModifier and TypeMethodDescriptionprivate static <T> Field
<T> RuntimeCollectionFieldFactory.createCollectionObjectV
(int number, String name, Field f, CollectionSchema.MessageFactory messageFactory, boolean allowNullElement, Schema<Object> valueSchema, Pipe.Schema<Object> valuePipeSchema, IdStrategy strategy) private static <T> Field
<T> RuntimeMapFieldFactory.createMapEnumKObjectV
(int number, String name, Field f, MapSchema.MessageFactory messageFactory, Class<Object> clazzK, Schema<Object> valueSchema, Pipe.Schema<Object> valuePipeSchema, IdStrategy strategy) private static <T> Field
<T> RuntimeMapFieldFactory.createMapInlineKObjectV
(int number, String name, Field f, MapSchema.MessageFactory messageFactory, Delegate<Object> inlineK, Schema<Object> valueSchema, Pipe.Schema<Object> valuePipeSchema, IdStrategy strategy) private static <T> Field
<T> RuntimeMapFieldFactory.createMapObjectKObjectV
(int number, String name, Field f, MapSchema.MessageFactory messageFactory, Schema<Object> keySchema, Pipe.Schema<Object> keyPipeSchema, Schema<Object> valueSchema, Pipe.Schema<Object> valuePipeSchema, IdStrategy strategy) private static <T> Field
<T> RuntimeMapFieldFactory.createMapPojoKObjectV
(int number, String name, Field f, MapSchema.MessageFactory messageFactory, Class<Object> clazzK, Schema<Object> valueSchema, Pipe.Schema<Object> valuePipeSchema, IdStrategy strategy) protected abstract void
DerivativeSchema.doMergeFrom
(Input input, Schema<Object> derivedSchema, Object owner) protected abstract void
RuntimeDerivativeField.doMergeFrom
(Input input, Schema<Object> derivedSchema, Object owner) private static Object
PolymorphicMapSchema.fillSingletonMapFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy, boolean graph, Object map) Return true to(package private) static Class
<?> ObjectSchema.getArrayClass
(Input input, Schema<?> schema, Class<?> componentType) (package private) static ObjectSchema.ArrayWrapper
ObjectSchema.newArrayWrapper
(Input input, Schema<?> schema, boolean mapped, IdStrategy strategy) private static Object
PolymorphicCollectionSchema.readCheckedCollectionFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy, boolean graph, Object collection, boolean ss, boolean list) private static Object
PolymorphicMapSchema.readCheckedMapFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy, boolean graph, Object map, boolean sm) (package private) static Object
ArraySchema.readObjectFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static Object
ClassSchema.readObjectFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static Object
NumberSchema.readObjectFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static Object
ObjectSchema.readObjectFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static Object
PolymorphicCollectionSchema.readObjectFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static Object
PolymorphicCollectionSchema.readObjectFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) (package private) static Object
PolymorphicEnumSchema.readObjectFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static Object
PolymorphicMapSchema.readObjectFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static Object
PolymorphicMapSchema.readObjectFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) (package private) static Object
PolymorphicPojoCollectionSchema.readObjectFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static Object
PolymorphicPojoCollectionSchema.readObjectFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) (package private) static Object
PolymorphicPojoMapSchema.readObjectFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static Object
PolymorphicPojoMapSchema.readObjectFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) (package private) static Object
PolymorphicPojoSchema.readObjectFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static Object
PolymorphicPojoSchema.readObjectFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) (package private) static Object
PolymorphicThrowableSchema.readObjectFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static Object
PolymorphicThrowableSchema.readObjectFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) private static Object
PolymorphicCollectionSchema.readSynchronizedCollectionFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy, boolean graph, Object collection, boolean ss, boolean list) private static Object
PolymorphicMapSchema.readSynchronizedMapFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy, boolean graph, Object map, boolean sm) private static Object
PolymorphicCollectionSchema.readUnmodifiableCollectionFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy, boolean graph, Object collection, boolean ss, boolean list) private static Object
PolymorphicMapSchema.readUnmodifiableMapFrom
(Input input, Schema<?> schema, Object owner, IdStrategy strategy, boolean graph, Object map, boolean sm) static <T> boolean
Returns true if this there is no existing one or the same schema has already been registered (this must be done on application startup).<T> boolean
DefaultIdStrategy.registerPojo
(Class<T> typeClass, Schema<T> schema) Registers a pojo.ExplicitIdStrategy.Registry.registerPojo
(Schema<T> schema, Pipe.Schema<T> pipeSchema, int id) Pojo ids start at 1.IncrementalIdStrategy.Registry.registerPojo
(Schema<T> schema, Pipe.Schema<T> pipeSchema, int id) Pojo ids start at 1.NumericIdStrategy.Registry.registerPojo
(Schema<T> schema, Pipe.Schema<T> pipeSchema, int id) Pojo ids start at 1.(package private) static <T> Pipe.Schema
<T> RuntimeSchema.resolvePipeSchema
(Schema<T> schema, Class<? super T> clazz, boolean throwIfNone) Invoked only when applications are having pipe io operations.(package private) static boolean
PolymorphicThrowableSchema.tryWriteWithoutCause
(Output output, Object value, Schema<Object> schema) private static void
ObjectSchema.writeArrayTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy, Class<Object> clazz) private static void
PolymorphicCollectionSchema.writeCheckedCollectionTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy, int id) private static void
PolymorphicMapSchema.writeCheckedMapTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy, int id) private static void
ObjectSchema.writeComponentTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy, Class<?> componentType, int dimensions) (package private) static void
PolymorphicCollectionSchema.writeNonPublicCollectionTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static void
PolymorphicMapSchema.writeNonPublicMapTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static void
ArraySchema.writeObjectTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static void
ClassSchema.writeObjectTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static void
NumberSchema.writeObjectTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static void
ObjectSchema.writeObjectTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static void
PolymorphicCollectionSchema.writeObjectTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static void
PolymorphicEnumSchema.writeObjectTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static void
PolymorphicMapSchema.writeObjectTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static void
PolymorphicPojoCollectionSchema.writeObjectTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static void
PolymorphicPojoMapSchema.writeObjectTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static void
PolymorphicPojoSchema.writeObjectTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static void
PolymorphicThrowableSchema.writeObjectTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) private static void
PolymorphicCollectionSchema.writeSynchronizedCollectionTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy, int id) private static void
PolymorphicMapSchema.writeSynchronizedMapTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy, int id) private static void
PolymorphicCollectionSchema.writeUnmodifiableCollectionTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy, int id) private static void
PolymorphicMapSchema.writeUnmodifiableMapTo
(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy, int id) Constructors in io.protostuff.runtime with parameters of type SchemaModifierConstructorDescription(package private)
Registered
(Schema<T> schema, IdStrategy strategy) (package private)
Registered
(int id, Schema<T> schema, Pipe.Schema<T> pipeSchema, IdStrategy strategy) (package private)
Registered
(int id, Schema<T> schema, Pipe.Schema<T> pipeSchema, IdStrategy strategy) RuntimePipeSchema
(Schema<T> schema, FieldMap<T> fieldMap)