public final class JSONUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static XMLStreamReader |
createBadgerFishReader(InputStream is) |
static XMLStreamWriter |
createBadgerFishWriter(OutputStream os) |
static org.codehaus.jettison.mapped.Configuration |
createConfiguration(ConcurrentHashMap<String,String> namespaceMap,
boolean writeXsiType,
boolean attributesAsElements,
org.codehaus.jettison.mapped.TypeConverter converter) |
static XMLStreamWriter |
createIgnoreMixedContentWriterIfNeeded(XMLStreamWriter writer,
boolean ignoreMixedContent) |
static XMLStreamWriter |
createIgnoreNsWriterIfNeeded(XMLStreamWriter writer,
boolean ignoreNamespaces) |
static XMLStreamReader |
createStreamReader(InputStream is,
boolean readXsiType,
ConcurrentHashMap<String,String> namespaceMap) |
static XMLStreamReader |
createStreamReader(InputStream is,
boolean readXsiType,
ConcurrentHashMap<String,String> namespaceMap,
List<String> primitiveArrayKeys,
DocumentDepthProperties depthProps) |
static XMLStreamWriter |
createStreamWriter(OutputStream os,
QName qname,
boolean writeXsiType,
org.codehaus.jettison.mapped.Configuration config,
boolean serializeAsArray,
List<String> arrayKeys,
boolean dropRootElement) |
public static XMLStreamWriter createBadgerFishWriter(OutputStream os) throws XMLStreamException
XMLStreamExceptionpublic static XMLStreamReader createBadgerFishReader(InputStream is) throws XMLStreamException
XMLStreamExceptionpublic static XMLStreamWriter createStreamWriter(OutputStream os, QName qname, boolean writeXsiType, org.codehaus.jettison.mapped.Configuration config, boolean serializeAsArray, List<String> arrayKeys, boolean dropRootElement) throws Exception
Exceptionpublic static org.codehaus.jettison.mapped.Configuration createConfiguration(ConcurrentHashMap<String,String> namespaceMap, boolean writeXsiType, boolean attributesAsElements, org.codehaus.jettison.mapped.TypeConverter converter)
public static XMLStreamWriter createIgnoreMixedContentWriterIfNeeded(XMLStreamWriter writer, boolean ignoreMixedContent)
public static XMLStreamWriter createIgnoreNsWriterIfNeeded(XMLStreamWriter writer, boolean ignoreNamespaces)
public static XMLStreamReader createStreamReader(InputStream is, boolean readXsiType, ConcurrentHashMap<String,String> namespaceMap) throws Exception
Exceptionpublic static XMLStreamReader createStreamReader(InputStream is, boolean readXsiType, ConcurrentHashMap<String,String> namespaceMap, List<String> primitiveArrayKeys, DocumentDepthProperties depthProps) throws Exception
ExceptionApache CXF