Registry / serialization / protostuff-runtime

protostuff-runtime

JSON →
library1.8.0javamavenunverified

A serialization library that uses Protocol Buffers to serialize pre-existing Java objects without requiring a schema definition.

<dependency> <groupId>io.protostuff</groupId> <artifactId>protostuff-runtime</artifactId> <version>1.8.0</version> </dependency>
INSTALL
IMPORT
SIG · PROTOSTUFF-RUNTIME
P
protostuff-runtime
serializationjavav1.8.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ProtobufIOUtil
✓ io.protostuff.ProtobufIOUtil

Serializes and deserializes a Java object using Protostuff runtime schema.

import io.protostuff.ProtobufIOUtil; import io.protostuff.Schema; import io.protostuff.runtime.RuntimeSchema; public class Example { public static void main(String[] args) { MyObject obj = new MyObject(); Schema<MyObject> schema = RuntimeSchema.getSchema(MyObject.class); byte[] bytes = ProtobufIOUtil.toByteArray(obj, schema, schema.newBuffer()); MyObject parsed = schema.newMessage(); ProtobufIOUtil.mergeFrom(bytes, parsed, schema); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.8.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
protostuff-runtime — mvn dependency:get protostuff-runtime · libregistry