Apache CXF API

org.apache.cxf.jaxrs.provider
Class JSONUtils

java.lang.Object
  extended by org.apache.cxf.jaxrs.provider.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 org.codehaus.jettison.mapped.Configuration createConfiguration(ConcurrentHashMap<String,String> namespaceMap, boolean writeXsiType, boolean attributesAsElements, org.codehaus.jettison.mapped.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.XMLStreamWriter createStreamWriter(OutputStream os, QName qname, boolean writeXsiType, org.codehaus.jettison.mapped.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
 

Method Detail

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,
                                                                  org.codehaus.jettison.mapped.Configuration config,
                                                                  boolean serializeAsArray,
                                                                  List<String> arrayKeys,
                                                                  boolean dropRootElement)
                                                           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 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

Apache CXF API

Apache CXF