public final class CborUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_CBOR |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
fromBytes(byte[] bytes,
Class<T> type) |
static <T> T |
fromBytes(byte[] bytes,
int offset,
int length,
Class<T> type) |
static <T> T |
readBytes(InputStream input,
Class<T> type) |
static byte[] |
toBytes(Object value) |
static void |
writeBytes(OutputStream output,
Object value) |
public static final String APPLICATION_CBOR
public static byte[] toBytes(Object value)
public static <T> T fromBytes(byte[] bytes,
Class<T> type)
public static <T> T fromBytes(byte[] bytes,
int offset,
int length,
Class<T> type)
public static void writeBytes(OutputStream output, Object value)
public static <T> T readBytes(InputStream input, Class<T> type)
Copyright © 2016. All rights reserved.