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 javax.xml.stream.XMLStreamReader |
createBadgerFishReader(InputStream is)
|
static javax.xml.stream.XMLStreamWriter |
createBadgerFishWriter(OutputStream os)
|
static Configuration |
createConfiguration(ConcurrentHashMap<String,String> namespaceMap,
boolean writeXsiType,
boolean attributesAsElements,
TypeConverter converter)
|
static javax.xml.stream.XMLStreamWriter |
createIgnoreMixedContentWriterIfNeeded(javax.xml.stream.XMLStreamWriter writer,
boolean ignoreMixedContent)
|
static javax.xml.stream.XMLStreamWriter |
createIgnoreNsWriterIfNeeded(javax.xml.stream.XMLStreamWriter writer,
boolean ignoreNamespaces)
|
static javax.xml.stream.XMLStreamReader |
createStreamReader(InputStream is,
boolean readXsiType,
ConcurrentHashMap<String,String> namespaceMap)
|
static javax.xml.stream.XMLStreamReader |
createStreamReader(InputStream is,
boolean readXsiType,
ConcurrentHashMap<String,String> namespaceMap,
DocumentDepthProperties depthProps)
|
static javax.xml.stream.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 javax.xml.stream.XMLStreamWriter createBadgerFishWriter(OutputStream os)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
createBadgerFishReader
public static javax.xml.stream.XMLStreamReader createBadgerFishReader(InputStream is)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
createStreamWriter
public static javax.xml.stream.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 javax.xml.stream.XMLStreamWriter createIgnoreMixedContentWriterIfNeeded(javax.xml.stream.XMLStreamWriter writer,
boolean ignoreMixedContent)
createIgnoreNsWriterIfNeeded
public static javax.xml.stream.XMLStreamWriter createIgnoreNsWriterIfNeeded(javax.xml.stream.XMLStreamWriter writer,
boolean ignoreNamespaces)
createStreamReader
public static javax.xml.stream.XMLStreamReader createStreamReader(InputStream is,
boolean readXsiType,
ConcurrentHashMap<String,String> namespaceMap)
throws Exception
- Throws:
Exception
createStreamReader
public static javax.xml.stream.XMLStreamReader createStreamReader(InputStream is,
boolean readXsiType,
ConcurrentHashMap<String,String> namespaceMap,
DocumentDepthProperties depthProps)
throws Exception
- Throws:
Exception
Apache CXF