Uses of Interface
io.protostuff.Schema
Packages that use Schema
-
Uses of Schema in io.protostuff
Classes in io.protostuff that implement SchemaModifier and TypeClassDescriptionclassA schema for standard jdkcollections.classCustomSchema<T>A schema (helper class) that wraps another schema and allows its subclasses to override certain methods for more customization.final classA ByteArrayInput w/c can handle cyclic dependencies when deserializing objects with graph transformations.final classA CodedInput w/c can handle cyclic dependencies when deserializing objects with graph transformations.classMapSchema<K,V> A schema for aMap.final classA schema for aCollectionwithMessageor pojo values.final classMessageMapSchema<K,V> static classPipe.Schema<T>classFields in io.protostuff declared as SchemaModifier and TypeFieldDescriptionMapSchema.entrySchemaMessageMapSchema.kSchemaThe schema of the message key.GraphByteArrayInput.lastSchemaGraphCodedInput.lastSchemaCustomSchema.schemaprivate Schema<?> JsonOutput.schemaprivate Schema<?> JsonXOutput.schemaprivate Schema<?> KvpOutput.schemaMessageCollectionSchema.schemaThe schema of the member (message).private Schema<?> XmlOutput.schemaprivate Schema<?> XmlXOutput.schemaprivate Schema<?> YamlOutput.schemafinal Schema<?> UninitializedMessageException.targetSchemaMessageMapSchema.vSchemaThe schema of the message value.StringMapSchema.vSchemaThe schema of the message value.Pipe.Schema.wrappedSchemaMethods 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> voidByteArrayInput.handleUnknownField(int fieldNumber, Schema<T> schema) <T> voidByteBufferInput.handleUnknownField(int fieldNumber, Schema<T> schema) <T> voidCodedInput.handleUnknownField(int fieldNumber, Schema<T> schema) <T> voidFilterInput.handleUnknownField(int fieldNumber, Schema<T> schema) <T> voidGraphByteArrayInput.handleUnknownField(int fieldNumber, Schema<T> schema) <T> voidGraphCodedInput.handleUnknownField(int fieldNumber, Schema<T> schema) <T> voidInput.handleUnknownField(int fieldNumber, Schema<T> schema) The underlying implementation should handle the unknown field.<T> voidJsonInput.handleUnknownField(int fieldNumber, Schema<T> schema) <T> voidKvpByteArrayInput.handleUnknownField(int fieldNumber, Schema<T> schema) <T> voidKvpInput.handleUnknownField(int fieldNumber, Schema<T> schema) <T> voidXmlInput.handleUnknownField(int fieldNumber, Schema<T> schema) static <T> intGraphIOUtil.mergeDelimitedFrom(DataInput in, T message, Schema<T> schema) Used by the code generated messages that implementExternalizable.static <T> intGraphIOUtil.mergeDelimitedFrom(InputStream in, T message, Schema<T> schema) static <T> intGraphIOUtil.mergeDelimitedFrom(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) (package private) static <T> intIOUtil.mergeDelimitedFrom(DataInput in, T message, Schema<T> schema, boolean decodeNestedMessageAsGroup) Used by the code generated messages that implementExternalizable.(package private) static <T> intIOUtil.mergeDelimitedFrom(InputStream in, byte[] buf, T message, Schema<T> schema, boolean decodeNestedMessageAsGroup) Thebufsize limits the size of the message that must be read.(package private) static <T> intIOUtil.mergeDelimitedFrom(InputStream in, T message, Schema<T> schema, boolean decodeNestedMessageAsGroup) static <T> intProtobufIOUtil.mergeDelimitedFrom(DataInput in, T message, Schema<T> schema) Used by the code generated messages that implementExternalizable.static <T> intProtobufIOUtil.mergeDelimitedFrom(InputStream in, T message, Schema<T> schema) static <T> intProtobufIOUtil.mergeDelimitedFrom(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) static <T> intProtostuffIOUtil.mergeDelimitedFrom(DataInput in, T message, Schema<T> schema) Used by the code generated messages that implementExternalizable.static <T> intProtostuffIOUtil.mergeDelimitedFrom(InputStream in, T message, Schema<T> schema) static <T> intProtostuffIOUtil.mergeDelimitedFrom(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) static <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidGraphIOUtil.mergeFrom(CodedInput input, T message, Schema<T> schema) static <T> voidGraphIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema) static <T> voidGraphIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) (package private) static <T> voidIOUtil.mergeFrom(byte[] data, int offset, int length, T message, Schema<T> schema, boolean decodeNestedMessageAsGroup) Merges themessagewith the byte array using the givenschema.(package private) static <T> voidIOUtil.mergeFrom(InputStream in, byte[] buf, T message, Schema<T> schema, boolean decodeNestedMessageAsGroup) (package private) static <T> voidIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema, boolean decodeNestedMessageAsGroup) static <T> voidJsonIOUtil.mergeFrom(byte[] data, int offset, int length, T message, Schema<T> schema, boolean numeric) Merges themessagewith the byte array using the givenschema.static <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidJsonIOUtil.mergeFrom(com.fasterxml.jackson.core.JsonParser parser, T message, Schema<T> schema, boolean numeric) Merges themessagefrom the JsonParser using the givenschema.static <T> voidJsonIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema, boolean numeric) static <T> voidJsonIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) static <T> voidstatic <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidProtobufIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema) static <T> voidProtobufIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) static <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidProtostuffIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema) static <T> voidProtostuffIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) static <T> voidSmileIOUtil.mergeFrom(byte[] data, int offset, int length, T message, Schema<T> schema, boolean numeric) Merges themessagewith the byte array using the givenschema.static <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidSmileIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema, boolean numeric) static <T> voidSmileIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) static <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidXmlIOUtil.mergeFrom(byte[] data, int offset, int len, T message, Schema<T> schema, XMLInputFactory inFactory) Merges themessagewith the byte array using the givenschema.static <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidXmlIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema) static <T> voidXmlIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema, XMLInputFactory inFactory) static <T> voidstatic <T> voidXmlIOUtil.mergeFrom(Reader r, T message, Schema<T> schema, XMLInputFactory inFactory) static <T> voidXmlIOUtil.mergeFrom(XMLStreamReader parser, T message, Schema<T> schema) <T> TByteArrayInput.mergeObject(T value, Schema<T> schema) <T> TByteBufferInput.mergeObject(T value, Schema<T> schema) <T> TCodedInput.mergeObject(T value, Schema<T> schema) <T> TFilterInput.mergeObject(T value, Schema<T> schema) <T> TGraphByteArrayInput.mergeObject(T value, Schema<T> schema) <T> TGraphCodedInput.mergeObject(T value, Schema<T> schema) <T> TInput.mergeObject(T value, Schema<T> schema) Merges an object(with schema) field value.<T> TJsonInput.mergeObject(T value, Schema<T> schema) <T> TKvpByteArrayInput.mergeObject(T value, Schema<T> schema) <T> TKvpInput.mergeObject(T value, Schema<T> schema) <T> TXmlInput.mergeObject(T value, Schema<T> schema) private <T> TByteArrayInput.mergeObjectEncodedAsGroup(T value, Schema<T> schema) private <T> TByteBufferInput.mergeObjectEncodedAsGroup(T value, Schema<T> schema) private <T> TCodedInput.mergeObjectEncodedAsGroup(T value, Schema<T> schema) Reads a message field value from the stream (using thegroupencoding).static <T> booleanGraphIOUtil.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> booleanGraphIOUtil.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> booleanProtobufIOUtil.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> booleanProtobufIOUtil.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> booleanProtostuffIOUtil.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> booleanProtostuffIOUtil.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> intGraphIOUtil.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> intProtobufIOUtil.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> intProtostuffIOUtil.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 themessagesfrom the parser using the givenschema.static <T> List<T> JsonIOUtil.parseListFrom(InputStream in, Schema<T> schema, boolean numeric) Parses themessagesfrom the stream using the givenschema.static <T> List<T> JsonIOUtil.parseListFrom(InputStream in, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Parses themessagesfrom the stream using the givenschema.static <T> List<T> JsonIOUtil.parseListFrom(Reader reader, Schema<T> schema, boolean numeric) Parses themessagesfrom 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 themessagesfrom the stream using the givenschema.static <T> List<T> SmileIOUtil.parseListFrom(InputStream in, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Parses themessagesfrom 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> intByteArrayInput.readFieldNumber(Schema<T> schema) <T> intByteBufferInput.readFieldNumber(Schema<T> schema) <T> intCodedInput.readFieldNumber(Schema<T> schema) <T> intFilterInput.readFieldNumber(Schema<T> schema) <T> intGraphByteArrayInput.readFieldNumber(Schema<T> schema) <T> intGraphCodedInput.readFieldNumber(Schema<T> schema) <T> intInput.readFieldNumber(Schema<T> schema) Reads the field number of a message/object tied to the givenschema.<T> intJsonInput.readFieldNumber(Schema<T> schema) private <T> intJsonInput.readFieldNumber(Schema<T> schema, com.fasterxml.jackson.core.JsonParser parser) <T> intKvpByteArrayInput.readFieldNumber(Schema<T> schema) <T> intKvpInput.readFieldNumber(Schema<T> schema) <T> intXmlInput.readFieldNumber(Schema<T> schema) static <T> byte[]GraphIOUtil.toByteArray(T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessageinto a byte array using the given schema.static <T> byte[]JsonIOUtil.toByteArray(T message, Schema<T> schema, boolean numeric) Serializes themessageinto a byte array using the givenschema.static <T> byte[]JsonIOUtil.toByteArray(T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Serializes themessageinto 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 themessageinto a byte array using the given schema.static <T> byte[]ProtostuffIOUtil.toByteArray(T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessageinto a byte array using the given schema.static <T> byte[]SmileIOUtil.toByteArray(T message, Schema<T> schema, boolean numeric) Serializes themessageinto a byte array using the givenschema.static <T> byte[]SmileIOUtil.toByteArray(T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Serializes themessageinto a byte array using the givenschema.static <T> byte[]XmlIOUtil.toByteArray(T message, Schema<T> schema) Serializes themessageinto a byte array.static <T> byte[]XmlIOUtil.toByteArray(T message, Schema<T> schema, XMLOutputFactory outFactory) Serializes themessageinto a byte array.static <T> byte[]XmlXIOUtil.toByteArray(T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessageinto a byte array using the given schema.static <T> byte[]YamlIOUtil.toByteArray(T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessageinto a byte array with the supplied buffer.voidJsonOutput.updateLast(Schema<?> schema, Schema<?> lastSchema) voidJsonXOutput.updateLast(Schema<?> schema, Schema<?> lastSchema) voidStatefulOutput.updateLast(Schema<?> schema, Schema<?> lastSchema) Updates the schema iflastSchemawas indeed the last schema used.voidXmlOutput.updateLast(Schema<?> schema, Schema<?> lastSchema) voidXmlXOutput.updateLast(Schema<?> schema, Schema<?> lastSchema) voidYamlOutput.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> intGraphIOUtil.writeDelimitedTo(DataOutput out, T message, Schema<T> schema) Used by the code generated messages that implementExternalizable.static <T> intGraphIOUtil.writeDelimitedTo(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessage, prefixed with its length, into anOutputStream.static <T> intProtobufIOUtil.writeDelimitedTo(DataOutput out, T message, Schema<T> schema) Used by the code generated messages that implementExternalizable.static <T> intProtobufIOUtil.writeDelimitedTo(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessage, prefixed with its length, into anOutputStream.static <T> intProtostuffIOUtil.writeDelimitedTo(DataOutput out, T message, Schema<T> schema) Used by the code generated messages that implementExternalizable.static <T> intProtostuffIOUtil.writeDelimitedTo(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessage, prefixed with its length, into anOutputStream.static <T> voidJsonIOUtil.writeListTo(com.fasterxml.jackson.core.JsonGenerator generator, List<T> messages, Schema<T> schema, boolean numeric) Serializes themessagesinto the generator using the given schema.static <T> voidJsonIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema, boolean numeric) Serializes themessagesinto the stream using the given schema.static <T> voidJsonIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Serializes themessagesinto the stream using the given schema.static <T> voidJsonIOUtil.writeListTo(Writer writer, List<T> messages, Schema<T> schema, boolean numeric) Serializes themessagesinto the writer using the given schema.static <T> voidJsonXIOUtil.writeListTo(LinkedBuffer buffer, List<T> messages, Schema<T> schema, boolean numeric) Serializes themessagesinto theLinkedBufferusing the given schema.static <T> voidJsonXIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Serializes themessagesinto the stream using the given schema with the supplied buffer.static <T> intProtobufIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema, LinkedBuffer buffer) Serializes themessages(delimited) into anOutputStreamusing the given schema.static <T> intProtostuffIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema, LinkedBuffer buffer) Serializes themessages(delimited) into anOutputStreamusing the given schema.static <T> voidSmileIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema, boolean numeric) Serializes themessagesinto the stream using the given schema.static <T> voidSmileIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Serializes themessagesinto the stream using the given schema.static <T> voidXmlIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema) Serializes themessagesinto theOutputStreamusing the given schema.static <T> voidXmlIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema, XMLOutputFactory outFactory) Serializes themessagesinto theOutputStreamusing the given schema.static <T> voidXmlIOUtil.writeListTo(XMLStreamWriter writer, List<T> messages, Schema<T> schema) Serializes themessagesinto theXMLStreamWriterusing the given schema.static <T> intYamlIOUtil.writeListTo(LinkedBuffer buffer, List<T> messages, Schema<T> schema) Serializes themessagesaLinkedBufferusing the given schema.static <T> intYamlIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema, LinkedBuffer buffer) Serializes themessagesinto anOutputStreamusing the given schema with the supplied buffer.<T> voidFilterOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidGraphProtostuffOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidJsonOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidJsonXOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidKvpOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidLowCopyProtobufOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidLowCopyProtostuffOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) Writes an object(using its schema) field.<T> voidProtobufOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidProtostuffOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidXmlOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidXmlXOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidYamlOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) static <T> intGraphIOUtil.writeTo(LinkedBuffer buffer, T message, Schema<T> schema) Writes themessageinto theLinkedBufferusing the given schema.static <T> intGraphIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessageinto anOutputStreamusing the given schema.static <T> voidJsonIOUtil.writeTo(com.fasterxml.jackson.core.JsonGenerator generator, T message, Schema<T> schema, boolean numeric) Serializes themessageinto a JsonGenerator using the givenschema.static <T> voidJsonIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, boolean numeric) static <T> voidJsonIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) static <T> voidstatic <T> voidJsonXIOUtil.writeTo(LinkedBuffer buffer, T message, Schema<T> schema, boolean numeric) Serializes themessageinto aLinkedBufferviaJsonXOutputusing the givenschemawith the supplied buffer.static <T> voidJsonXIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) static <T> intProtobufIOUtil.writeTo(LinkedBuffer buffer, T message, Schema<T> schema) Writes themessageinto theLinkedBufferusing the given schema.static <T> intProtobufIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessageinto anOutputStreamusing the given schema.static <T> intProtostuffIOUtil.writeTo(LinkedBuffer buffer, T message, Schema<T> schema) Writes themessageinto theLinkedBufferusing the given schema.static <T> intProtostuffIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessageinto anOutputStreamusing the given schema.static <T> voidSmileIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, boolean numeric) static <T> voidSmileIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) static <T> voidXmlIOUtil.writeTo(OutputStream out, T message, Schema<T> schema) static <T> voidXmlIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, XMLOutputFactory outFactory) static <T> voidstatic <T> voidXmlIOUtil.writeTo(Writer w, T message, Schema<T> schema, XMLOutputFactory outFactory) static <T> voidXmlIOUtil.writeTo(XMLStreamWriter writer, T message, Schema<T> schema) static <T> intXmlXIOUtil.writeTo(LinkedBuffer buffer, T message, Schema<T> schema) Writes themessageinto theLinkedBufferusing the given schema.static <T> intXmlXIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessageinto anOutputStreamusing the given schema.static <T> intYamlIOUtil.writeTo(LinkedBuffer buffer, T message, Schema<T> schema) Serializes themessageinto theLinkedBuffer.static <T> intYamlIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessageinto anOutputStreamwith 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 TypeClassDescriptionclassUsed when a field is an array (Object[] or any polymorphic component type).static classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classclassUsed when a field is declared asClass<?>(with or with-out generics).classThis schema delegates to another schema derived from the input.classUsed when the type isNumber.classA schema for dynamic types (fields where the type isObject).classUsed when the type is an interface (Collection/List/Set/SortedSet).classUsed when a field is declared asEnum<?>(with or with-out generics).classUsed when the type is an interface (Map/SortedMap).classWill be used ifRuntimeEnv.POJO_SCHEMA_ON_COLLECTION_FIELDSis enabled and the field is assignable from Collection.classPlaceholder for annotated interface/object fields configured to use this.classWill be used if eitherRuntimeEnv.POJO_SCHEMA_ON_COLLECTION_FIELDSorRuntimeEnv.POJO_SCHEMA_ON_MAP_FIELDSis set.classUsed when the type is either polymorphic or too complex.classUsed when the type is assignable fromThrowable.final classRuntime pipe schema.final classA schema that can be generated and cached at runtime for objects that have no schema.static classThe base schema used by the built-in factories.static classFields in io.protostuff.runtime declared as SchemaModifier and TypeFieldDescriptionIdStrategy.ARRAY_SCHEMAIdStrategy.CLASS_SCHEMA(package private) final Schema<Collection<Object>> IdStrategy.COLLECTION_SCHEMAIdStrategy.DYNAMIC_VALUE_SCHEMAIdStrategy.ENTRY_SCHEMAIdStrategy.MAP_SCHEMAIdStrategy.OBJECT_SCHEMAIdStrategy.POLYMORPHIC_COLLECTION_SCHEMAIdStrategy.POLYMORPHIC_MAP_SCHEMADefaultIdStrategy.Lazy.schemaDefaultIdStrategy.LazyRegister.schemaDefaultIdStrategy.Registered.schemaExplicitIdStrategy.Lazy.schemaExplicitIdStrategy.Registered.schemaIncrementalIdStrategy.LazyRegister.schemaIncrementalIdStrategy.Registered.schemaMethods 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 voidDerivativeSchema.doMergeFrom(Input input, Schema<Object> derivedSchema, Object owner) protected abstract voidRuntimeDerivativeField.doMergeFrom(Input input, Schema<Object> derivedSchema, Object owner) private static ObjectPolymorphicMapSchema.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.ArrayWrapperObjectSchema.newArrayWrapper(Input input, Schema<?> schema, boolean mapped, IdStrategy strategy) private static ObjectPolymorphicCollectionSchema.readCheckedCollectionFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, boolean graph, Object collection, boolean ss, boolean list) private static ObjectPolymorphicMapSchema.readCheckedMapFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, boolean graph, Object map, boolean sm) (package private) static ObjectArraySchema.readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static ObjectClassSchema.readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static ObjectNumberSchema.readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static ObjectObjectSchema.readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static ObjectPolymorphicCollectionSchema.readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static ObjectPolymorphicCollectionSchema.readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) (package private) static ObjectPolymorphicEnumSchema.readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static ObjectPolymorphicMapSchema.readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static ObjectPolymorphicMapSchema.readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) (package private) static ObjectPolymorphicPojoCollectionSchema.readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static ObjectPolymorphicPojoCollectionSchema.readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) (package private) static ObjectPolymorphicPojoMapSchema.readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static ObjectPolymorphicPojoMapSchema.readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) (package private) static ObjectPolymorphicPojoSchema.readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static ObjectPolymorphicPojoSchema.readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) (package private) static ObjectPolymorphicThrowableSchema.readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy) (package private) static ObjectPolymorphicThrowableSchema.readObjectFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, int number) private static ObjectPolymorphicCollectionSchema.readSynchronizedCollectionFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, boolean graph, Object collection, boolean ss, boolean list) private static ObjectPolymorphicMapSchema.readSynchronizedMapFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, boolean graph, Object map, boolean sm) private static ObjectPolymorphicCollectionSchema.readUnmodifiableCollectionFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, boolean graph, Object collection, boolean ss, boolean list) private static ObjectPolymorphicMapSchema.readUnmodifiableMapFrom(Input input, Schema<?> schema, Object owner, IdStrategy strategy, boolean graph, Object map, boolean sm) static <T> booleanReturns true if this there is no existing one or the same schema has already been registered (this must be done on application startup).<T> booleanDefaultIdStrategy.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 booleanPolymorphicThrowableSchema.tryWriteWithoutCause(Output output, Object value, Schema<Object> schema) private static voidObjectSchema.writeArrayTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy, Class<Object> clazz) private static voidPolymorphicCollectionSchema.writeCheckedCollectionTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy, int id) private static voidPolymorphicMapSchema.writeCheckedMapTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy, int id) private static voidObjectSchema.writeComponentTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy, Class<?> componentType, int dimensions) (package private) static voidPolymorphicCollectionSchema.writeNonPublicCollectionTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static voidPolymorphicMapSchema.writeNonPublicMapTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static voidArraySchema.writeObjectTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static voidClassSchema.writeObjectTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static voidNumberSchema.writeObjectTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static voidObjectSchema.writeObjectTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static voidPolymorphicCollectionSchema.writeObjectTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static voidPolymorphicEnumSchema.writeObjectTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static voidPolymorphicMapSchema.writeObjectTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static voidPolymorphicPojoCollectionSchema.writeObjectTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static voidPolymorphicPojoMapSchema.writeObjectTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static voidPolymorphicPojoSchema.writeObjectTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) (package private) static voidPolymorphicThrowableSchema.writeObjectTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy) private static voidPolymorphicCollectionSchema.writeSynchronizedCollectionTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy, int id) private static voidPolymorphicMapSchema.writeSynchronizedMapTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy, int id) private static voidPolymorphicCollectionSchema.writeUnmodifiableCollectionTo(Output output, Object value, Schema<?> currentSchema, IdStrategy strategy, int id) private static voidPolymorphicMapSchema.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)