Example usage for javax.xml.stream XMLStreamWriter interface-usage

List of usage examples for javax.xml.stream XMLStreamWriter interface-usage

Introduction

In this page you can find the example usage for javax.xml.stream XMLStreamWriter interface-usage.

Usage

From source file dk.statsbiblioteket.util.xml.XMLUnicodeStreamWriter.java

/**
 * XMLStreamWriter with proper entity escaping of extended Unicode characters.
 * Characters in plane 1 and above are represented internally in Java as multiple 16 bit {@code char}s.
 * To avoid problems downstream, these are best represented as entities: {@code &#xHHHHHH}.
 */
@QAInfo(level = QAInfo.Level.NORMAL, state = QAInfo.State.IN_DEVELOPMENT, author = "te")

From source file com.norconex.commons.lang.xml.EnhancedXMLStreamWriter.java

/**
 * @author Pascal Essiembre
 * @since 1.5.0
 */
public class EnhancedXMLStreamWriter implements XMLStreamWriter {

From source file ca.uhn.fhir.util.PrettyPrintWriterWrapper.java

public class PrettyPrintWriterWrapper implements XMLStreamWriter {

    private static final String INDENT_CHAR = " ";
    private static final String LINEFEED_CHAR = "\n";
    private static final String PRE = "pre";
    private int depth = 0;

From source file org.apache.axis2.datasource.jaxb.JAXBXMLStreamWriterFilter.java

/**
 * On some occasions, JAXB writes out incorrect xmlns and namespace information. This filter is
 * useful for logging and correcting these kinds of problems.
 */
class JAXBXMLStreamWriterFilter implements XMLStreamWriter {
    private static final Log log = LogFactory.getLog(JAXBXMLStreamWriterFilter.class);

From source file org.apache.axiom.util.stax.AbstractXMLStreamWriter.java

/**
 * Partial implementation of the {@link XMLStreamWriter} interface. It handles namespace bindings,
 * i.e. the methods related to the namespace context. Subclasses only need to implement write
 * methods that take a prefix together with the namespace URI argument. This class implements all
 * {@link XMLStreamWriter} methods that have a namespace URI argument, but no prefix argument.
 */

From source file com.xiongyingqi.util.xml.XMLEventStreamWriter.java

/**
 * Implementation of the {@link javax.xml.stream.XMLStreamWriter} interface that wraps a {@link javax.xml.stream.XMLEventWriter}.
 *
 * @author Arjen Poutsma
 * @see org.springframework.util.xml.StaxUtils#createEventStreamWriter(javax.xml.stream.XMLEventWriter, javax.xml.stream.XMLEventFactory)
 * @since 3.0.5

From source file org.apache.axis2.datasource.jaxb.XMLStreamWriterArrayFilter.java

/**
 * In some cases, we want to marshal an array of objects as a series
 * of elements instead of a single element containing items.
 * 
 * Unfortunately there is no way to tell the JAXB marshal method to 
 * marshal an array or List as a series of elements.   

From source file org.betaconceptframework.astroboa.model.jaxb.writer.JSONXmlStreamWriter.java

/**
 * @author Gregory Chomatas (gchomatas@betaconcept.com)
 * @author Savvas Triantafyllou (striantafyllou@betaconcept.com)
 * 
 */
public class JSONXmlStreamWriter implements XMLStreamWriter {

From source file org.apache.axiom.om.impl.MTOMXMLStreamWriter.java

/**
 * MTOMXMLStreamWriter is an XML + Attachments stream writer.
 * 
 * For the moment this assumes that transport takes the decision of whether to optimize or not by
 * looking at whether the MTOM optimize is enabled & also looking at the OM tree whether it has any
 * optimizable content.

From source file org.apache.axis2.json.gson.GsonXMLStreamWriter.java

public class GsonXMLStreamWriter implements XMLStreamWriter {

    private static final Log log = LogFactory.getLog(GsonXMLStreamWriter.class);

    private JsonWriter jsonWriter;