Package io.protostuff.runtime
Class ArraySchemas.Int32Array
- java.lang.Object
-
- io.protostuff.runtime.PolymorphicSchema
-
- io.protostuff.runtime.ArraySchemas.Base
-
- io.protostuff.runtime.ArraySchemas.Int32Array
-
- All Implemented Interfaces:
Schema<java.lang.Object>
- Enclosing class:
- ArraySchemas
public static class ArraySchemas.Int32Array extends ArraySchemas.Base
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.protostuff.runtime.PolymorphicSchema
PolymorphicSchema.Factory, PolymorphicSchema.Handler
-
-
Field Summary
Fields Modifier and Type Field Description protected Pipe.Schema<java.lang.Object>
pipeSchema
(package private) boolean
primitive
-
Fields inherited from class io.protostuff.runtime.ArraySchemas.Base
allowNullArrayElement, handler
-
Fields inherited from class io.protostuff.runtime.PolymorphicSchema
strategy
-
-
Constructor Summary
Constructors Constructor Description Int32Array(IdStrategy strategy, PolymorphicSchema.Handler handler, boolean primitive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pipe.Schema<java.lang.Object>
getPipeSchema()
The pipe schema associated with this schema.protected java.lang.Object
readBoxedFrom(Input input, java.lang.Object owner, int len)
java.lang.Object
readFrom(Input input, java.lang.Object owner)
protected java.lang.Object
readPrimitiveFrom(Input input, java.lang.Object owner, int len)
protected void
writeLengthTo(Output output, int len, boolean primitive)
void
writeTo(Output output, java.lang.Object value)
Serializes a message/object to theoutput
.protected void
writeTo(Output output, java.lang.Object value, boolean primitive)
-
Methods inherited from class io.protostuff.runtime.ArraySchemas.Base
getFieldName, getFieldNumber, mergeFrom, messageFullName, messageName, setValue
-
Methods inherited from class io.protostuff.runtime.PolymorphicSchema
isInitialized, newMessage, typeClass
-
-
-
-
Field Detail
-
pipeSchema
protected final Pipe.Schema<java.lang.Object> pipeSchema
-
primitive
final boolean primitive
-
-
Constructor Detail
-
Int32Array
Int32Array(IdStrategy strategy, PolymorphicSchema.Handler handler, boolean primitive)
-
-
Method Detail
-
getPipeSchema
public Pipe.Schema<java.lang.Object> getPipeSchema()
Description copied from class:PolymorphicSchema
The pipe schema associated with this schema.- Specified by:
getPipeSchema
in classPolymorphicSchema
-
readPrimitiveFrom
protected java.lang.Object readPrimitiveFrom(Input input, java.lang.Object owner, int len) throws java.io.IOException
- Throws:
java.io.IOException
-
readBoxedFrom
protected java.lang.Object readBoxedFrom(Input input, java.lang.Object owner, int len) throws java.io.IOException
- Throws:
java.io.IOException
-
readFrom
public java.lang.Object readFrom(Input input, java.lang.Object owner) throws java.io.IOException
- Specified by:
readFrom
in classArraySchemas.Base
- Throws:
java.io.IOException
-
writeLengthTo
protected void writeLengthTo(Output output, int len, boolean primitive) throws java.io.IOException
- Throws:
java.io.IOException
-
writeTo
protected void writeTo(Output output, java.lang.Object value, boolean primitive) throws java.io.IOException
- Throws:
java.io.IOException
-
-