public class JsonSerialization extends Object
Constructor and Description |
---|
JsonSerialization() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
fromBytes(Class<T> type,
byte[] bytes) |
static <T> T |
fromBytes(Class<T> type,
byte[] bytes,
ResteasyProviderFactory factory) |
static <T> T |
fromString(Class<T> type,
String json) |
static <T> T |
fromString(Class<T> type,
String json,
ResteasyProviderFactory factory) |
static byte[] |
toByteArray(Object token,
boolean indent) |
static byte[] |
toByteArray(Object token,
ResteasyProviderFactory factory) |
static String |
toString(Object token,
boolean indent) |
static String |
toString(Object token,
ResteasyProviderFactory factory) |
public static byte[] toByteArray(Object token, boolean indent) throws Exception
Exception
public static byte[] toByteArray(Object token, ResteasyProviderFactory factory) throws IOException
IOException
public static String toString(Object token, ResteasyProviderFactory factory) throws Exception
Exception
public static String toString(Object token, boolean indent) throws Exception
Exception
public static <T> T fromString(Class<T> type, String json) throws Exception
Exception
public static <T> T fromString(Class<T> type, String json, ResteasyProviderFactory factory) throws Exception
Exception
public static <T> T fromBytes(Class<T> type, byte[] bytes) throws IOException
IOException
public static <T> T fromBytes(Class<T> type, byte[] bytes, ResteasyProviderFactory factory) throws IOException
IOException
Copyright © 2015 JBoss by Red Hat. All rights reserved.