Class JSONUtils
- java.lang.Object
-
- org.apache.cxf.jaxrs.provider.json.utils.JSONUtils
-
public final class JSONUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringXSI_PREFIXstatic StringXSI_URI
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XMLStreamReadercreateBadgerFishReader(InputStream is, String enc)static XMLStreamWritercreateBadgerFishWriter(OutputStream os, String enc)static org.codehaus.jettison.mapped.ConfigurationcreateConfiguration(ConcurrentHashMap<String,String> namespaceMap, boolean writeXsiType, boolean attributesAsElements, org.codehaus.jettison.mapped.TypeConverter converter)static XMLStreamWritercreateIgnoreMixedContentWriterIfNeeded(XMLStreamWriter writer, boolean ignoreMixedContent)static XMLStreamWritercreateIgnoreNsWriterIfNeeded(XMLStreamWriter writer, boolean ignoreNamespaces, boolean ignoreXsiAttributes)static XMLStreamReadercreateStreamReader(InputStream is, boolean readXsiType, ConcurrentHashMap<String,String> namespaceMap)static XMLStreamReadercreateStreamReader(InputStream is, boolean readXsiType, ConcurrentHashMap<String,String> namespaceMap, String namespaceSeparator, List<String> primitiveArrayKeys, DocumentDepthProperties depthProps, String enc)static XMLStreamWritercreateStreamWriter(OutputStream os, QName qname, boolean writeXsiType, org.codehaus.jettison.mapped.Configuration config, boolean serializeAsArray, List<String> arrayKeys, boolean dropRootElement, String enc)
-
-
-
Field Detail
-
XSI_PREFIX
public static final String XSI_PREFIX
- See Also:
- Constant Field Values
-
XSI_URI
public static final String XSI_URI
- See Also:
- Constant Field Values
-
-
Method Detail
-
createBadgerFishWriter
public static XMLStreamWriter createBadgerFishWriter(OutputStream os, String enc) throws XMLStreamException
- Throws:
XMLStreamException
-
createBadgerFishReader
public static XMLStreamReader createBadgerFishReader(InputStream is, String enc) throws XMLStreamException
- Throws:
XMLStreamException
-
createStreamWriter
public static XMLStreamWriter createStreamWriter(OutputStream os, QName qname, boolean writeXsiType, org.codehaus.jettison.mapped.Configuration config, boolean serializeAsArray, List<String> arrayKeys, boolean dropRootElement, String enc) throws Exception
- Throws:
Exception
-
createConfiguration
public static org.codehaus.jettison.mapped.Configuration createConfiguration(ConcurrentHashMap<String,String> namespaceMap, boolean writeXsiType, boolean attributesAsElements, org.codehaus.jettison.mapped.TypeConverter converter)
-
createIgnoreMixedContentWriterIfNeeded
public static XMLStreamWriter createIgnoreMixedContentWriterIfNeeded(XMLStreamWriter writer, boolean ignoreMixedContent)
-
createIgnoreNsWriterIfNeeded
public static XMLStreamWriter createIgnoreNsWriterIfNeeded(XMLStreamWriter writer, boolean ignoreNamespaces, boolean ignoreXsiAttributes)
-
createStreamReader
public static XMLStreamReader createStreamReader(InputStream is, boolean readXsiType, ConcurrentHashMap<String,String> namespaceMap) throws Exception
- Throws:
Exception
-
createStreamReader
public static XMLStreamReader createStreamReader(InputStream is, boolean readXsiType, ConcurrentHashMap<String,String> namespaceMap, String namespaceSeparator, List<String> primitiveArrayKeys, DocumentDepthProperties depthProps, String enc) throws Exception
- Throws:
Exception
-
-