## Uses of Interface
javax.xml.stream.XMLEventWriter

- Packages that use XMLEventWriter
  Package | Description
  --- | ---
  javax.xml.bind | Provides a runtime binding framework for client applications including unmarshalling, marshalling, and validation capabilities.
  javax.xml.bind.helpers | JAXB Provider Use Only: Provides partial default implementations for some of the `javax.xml.bind` interfaces.
  javax.xml.stream | Defines interfaces and classes for the Streaming API for XML (StAX).
  javax.xml.transform.stax | Provides StAX specific transformation classes.

- - ### Uses of XMLEventWriter in javax.xml.bind

    Methods in javax.xml.bind with parameters of type XMLEventWriter
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | Marshaller.`marshal​(Object jaxbElement, XMLEventWriter writer)` | Marshal the content tree rooted at `jaxbElement` into a `XMLEventWriter`.

  - ### Uses of XMLEventWriter in javax.xml.bind.helpers

    Methods in javax.xml.bind.helpers with parameters of type XMLEventWriter
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | AbstractMarshallerImpl.`marshal​(Object obj, XMLEventWriter writer)` |

  - ### Uses of XMLEventWriter in javax.xml.stream

    Methods in javax.xml.stream that return XMLEventWriter
    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract XMLEventWriter` | XMLOutputFactory.`createXMLEventWriter​(OutputStream stream)` | Create a new XMLEventWriter that writes to a stream
    `abstract XMLEventWriter` | XMLOutputFactory.`createXMLEventWriter​(OutputStream stream, String encoding)` | Create a new XMLEventWriter that writes to a stream
    `abstract XMLEventWriter` | XMLOutputFactory.`createXMLEventWriter​(Writer stream)` | Create a new XMLEventWriter that writes to a writer
    `abstract XMLEventWriter` | XMLOutputFactory.`createXMLEventWriter​(Result result)` | Create a new XMLEventWriter that writes to a JAXP result.

  - ### Uses of XMLEventWriter in javax.xml.transform.stax

    Methods in javax.xml.transform.stax that return XMLEventWriter
    Modifier and Type | Method | Description
    --- | --- | ---
    `XMLEventWriter` | StAXResult.`getXMLEventWriter​()` | Get the `XMLEventWriter` used by this `StAXResult`.

    Constructors in javax.xml.transform.stax with parameters of type XMLEventWriter
    Constructor | Description
    --- | ---
    `StAXResult​(XMLEventWriter xmlEventWriter)` | Creates a new instance of a `StAXResult` by supplying an `XMLEventWriter`.