org.apache.cxf.jaxrs.provider.json.utils
Class JSONUtils

java.lang.Object
  extended by org.apache.cxf.jaxrs.provider.json.utils.JSONUtils

public final class JSONUtils
extends Object


Field Summary
static String XSI_PREFIX
           
static String XSI_URI
           
 
Method Summary
static XMLStreamReader createBadgerFishReader(InputStream is, String enc)
           
static XMLStreamWriter createBadgerFishWriter(OutputStream os, String enc)
           
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, org.apache.cxf.staxutils.DocumentDepthProperties depthProps, String enc)
           
static XMLStreamWriter createStreamWriter(OutputStream os, QName qname, boolean writeXsiType, org.codehaus.jettison.mapped.Configuration config, boolean serializeAsArray, List<String> arrayKeys, boolean dropRootElement, String enc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)

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,
                                                 List<String> primitiveArrayKeys,
                                                 org.apache.cxf.staxutils.DocumentDepthProperties depthProps,
                                                 String enc)
                                          throws Exception
Throws:
Exception


Apache CXF