public final class JsonUtils extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.chemistry.opencmis.commons.impl.json.parser.ContainerFactory |
SIMPLE_CONTAINER_FACTORY |
Modifier and Type | Method and Description |
---|---|
static String |
convertStreamToString(InputStream is) |
static void |
join(StringBuilder sb,
CharSequence delimiter,
Object[] tokens)
Utility method to help creating a default cmis query.
|
static Object |
parse(InputStream stream,
String charset,
org.apache.chemistry.opencmis.commons.impl.json.parser.ContainerFactory containerFactory)
Parses an input stream.
|
static List<Object> |
parseArray(InputStream stream,
String charset)
Parses an array from an input stream.
|
static Map<String,Object> |
parseObject(InputStream stream,
String charset)
Parses an object from an input stream.
|
static Map<String,Object> |
parseObject(String value) |
protected static final org.apache.chemistry.opencmis.commons.impl.json.parser.ContainerFactory SIMPLE_CONTAINER_FACTORY
public static Map<String,Object> parseObject(InputStream stream, String charset)
public static List<Object> parseArray(InputStream stream, String charset)
public static Object parse(InputStream stream, String charset, org.apache.chemistry.opencmis.commons.impl.json.parser.ContainerFactory containerFactory)
public static String convertStreamToString(InputStream is)
public static void join(StringBuilder sb, CharSequence delimiter, Object[] tokens)
sb
- delimiter
- tokens
- Copyright © 2012-2018 Alfresco Software. All Rights Reserved.