public final class ProtobufUtil extends Object
| Constructor and Description |
|---|
ProtobufUtil() |
public static SerializationContext newSerializationContext(Configuration configuration)
public static void writeTo(SerializationContext ctx, OutputStream out, Object t) throws IOException
IOExceptionpublic static byte[] toByteArray(SerializationContext ctx, Object t) throws IOException
IOExceptionpublic static ByteBuffer toByteBuffer(SerializationContext ctx, Object t) throws IOException
IOExceptionpublic static <A> A readFrom(SerializationContext ctx, InputStream in, Class<A> clazz) throws IOException
IOExceptionpublic static <A> A fromByteArray(SerializationContext ctx, byte[] bytes, Class<A> clazz) throws IOException
IOExceptionpublic static <A> A fromByteArray(SerializationContext ctx, byte[] bytes, int offset, int length, Class<A> clazz) throws IOException
IOExceptionpublic static <A> A fromByteBuffer(SerializationContext ctx, ByteBuffer byteBuffer, Class<A> clazz) throws IOException
IOExceptionpublic static Object fromWrappedByteArray(SerializationContext ctx, byte[] bytes) throws IOException
ctx - bytes - IOExceptionpublic static Object fromWrappedByteArray(SerializationContext ctx, byte[] bytes, int offset, int length) throws IOException
IOExceptionpublic static Object fromWrappedByteBuffer(SerializationContext ctx, ByteBuffer byteBuffer) throws IOException
IOExceptionpublic static byte[] toWrappedByteArray(SerializationContext ctx, Object t) throws IOException
IOExceptionpublic static ByteBuffer toWrappedByteBuffer(SerializationContext ctx, Object t) throws IOException
IOExceptionCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.