org.apache.cxf.jaxrs.provider.json.utils
Class JSONUtils
java.lang.Object
org.apache.cxf.jaxrs.provider.json.utils.JSONUtils
public final class JSONUtils
- extends Object
Method Summary |
static XMLStreamReader |
createBadgerFishReader(InputStream is)
|
static XMLStreamWriter |
createBadgerFishWriter(OutputStream os)
|
static Configuration |
createConfiguration(ConcurrentHashMap<String,String> namespaceMap,
boolean writeXsiType,
boolean attributesAsElements,
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,
DocumentDepthProperties depthProps)
|
static XMLStreamWriter |
createStreamWriter(OutputStream os,
QName qname,
boolean writeXsiType,
Configuration config,
boolean serializeAsArray,
List<String> arrayKeys,
boolean dropRootElement)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createBadgerFishWriter
public static XMLStreamWriter createBadgerFishWriter(OutputStream os)
throws XMLStreamException
- Throws:
XMLStreamException
createBadgerFishReader
public static XMLStreamReader createBadgerFishReader(InputStream is)
throws XMLStreamException
- Throws:
XMLStreamException
createStreamWriter
public static XMLStreamWriter createStreamWriter(OutputStream os,
QName qname,
boolean writeXsiType,
Configuration config,
boolean serializeAsArray,
List<String> arrayKeys,
boolean dropRootElement)
throws Exception
- Throws:
Exception
createConfiguration
public static Configuration createConfiguration(ConcurrentHashMap<String,String> namespaceMap,
boolean writeXsiType,
boolean attributesAsElements,
TypeConverter converter)
createIgnoreMixedContentWriterIfNeeded
public static XMLStreamWriter createIgnoreMixedContentWriterIfNeeded(XMLStreamWriter writer,
boolean ignoreMixedContent)
createIgnoreNsWriterIfNeeded
public static XMLStreamWriter createIgnoreNsWriterIfNeeded(XMLStreamWriter writer,
boolean ignoreNamespaces)
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,
DocumentDepthProperties depthProps)
throws Exception
- Throws:
Exception
Apache CXF