org.qi4j.valueserialization.stax

## Class StaxValueSerializer

- java.lang.Object
- - org.qi4j.spi.value.ValueSerializerAdapter<XMLStreamWriter>
  - - org.qi4j.valueserialization.stax.StaxValueSerializer

- All Implemented Interfaces:
    ValueSerializer

      public class StaxValueSerializer
      extends ValueSerializerAdapter<XMLStreamWriter>

  ValueSerializer producing Values state as XML documents.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.qi4j.spi.value.ValueSerializerAdapter

      `ValueSerializerAdapter.ComplexSerializer<T,OutputType>`

    - ### Nested classes/interfaces inherited from interface org.qi4j.api.value.ValueSerializer

      `ValueSerializer.Options`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `StaxValueSerializer()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected XMLStreamWriter` | `adaptOutput(OutputStream output)`
    `protected void` | `onArrayEnd(XMLStreamWriter output)`
    `protected void` | `onArrayStart(XMLStreamWriter output)`
    `protected void` | `onFieldEnd(XMLStreamWriter output)`
    `protected void` | `onFieldStart(XMLStreamWriter output, String key)`
    `protected void` | `onObjectEnd(XMLStreamWriter output)`
    `protected void` | `onObjectStart(XMLStreamWriter output)`
    `protected void` | `onSerializationEnd(Object object, XMLStreamWriter output)`
    `protected void` | `onValue(XMLStreamWriter output, Object value)`
    `protected void` | `onValueEnd(XMLStreamWriter output)`
    `protected void` | `onValueStart(XMLStreamWriter output)`

    - ### Methods inherited from class org.qi4j.spi.value.ValueSerializerAdapter

      `onSerializationStart, registerComplexSerializer, registerSerializer, serialize, serialize, serialize, serialize, serialize, serialize, serialize, serialize, serialize`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### StaxValueSerializer

          public StaxValueSerializer()

  - ### Method Detail

    - #### adaptOutput

          protected XMLStreamWriter adaptOutput(OutputStream output)
                                         throws Exception

      Specified by:
        `adaptOutput` in class `ValueSerializerAdapter<XMLStreamWriter>`
      Throws:
        `Exception`

    - #### onSerializationEnd

          protected void onSerializationEnd(Object object,
                                XMLStreamWriter output)
                                     throws Exception

      Overrides:
        `onSerializationEnd` in class `ValueSerializerAdapter<XMLStreamWriter>`
      Throws:
        `Exception`

    - #### onArrayStart

          protected void onArrayStart(XMLStreamWriter output)
                               throws Exception

      Specified by:
        `onArrayStart` in class `ValueSerializerAdapter<XMLStreamWriter>`
      Throws:
        `Exception`

    - #### onArrayEnd

          protected void onArrayEnd(XMLStreamWriter output)
                             throws Exception

      Specified by:
        `onArrayEnd` in class `ValueSerializerAdapter<XMLStreamWriter>`
      Throws:
        `Exception`

    - #### onObjectStart

          protected void onObjectStart(XMLStreamWriter output)
                                throws Exception

      Specified by:
        `onObjectStart` in class `ValueSerializerAdapter<XMLStreamWriter>`
      Throws:
        `Exception`

    - #### onObjectEnd

          protected void onObjectEnd(XMLStreamWriter output)
                              throws Exception

      Specified by:
        `onObjectEnd` in class `ValueSerializerAdapter<XMLStreamWriter>`
      Throws:
        `Exception`

    - #### onFieldStart

          protected void onFieldStart(XMLStreamWriter output,
                          String key)
                               throws Exception

      Specified by:
        `onFieldStart` in class `ValueSerializerAdapter<XMLStreamWriter>`
      Throws:
        `Exception`

    - #### onFieldEnd

          protected void onFieldEnd(XMLStreamWriter output)
                             throws Exception

      Overrides:
        `onFieldEnd` in class `ValueSerializerAdapter<XMLStreamWriter>`
      Throws:
        `Exception`

    - #### onValueStart

          protected void onValueStart(XMLStreamWriter output)
                               throws Exception

      Overrides:
        `onValueStart` in class `ValueSerializerAdapter<XMLStreamWriter>`
      Throws:
        `Exception`

    - #### onValue

          protected void onValue(XMLStreamWriter output,
                     Object value)
                          throws Exception

      Specified by:
        `onValue` in class `ValueSerializerAdapter<XMLStreamWriter>`
      Throws:
        `Exception`

    - #### onValueEnd

          protected void onValueEnd(XMLStreamWriter output)
                             throws Exception

      Overrides:
        `onValueEnd` in class `ValueSerializerAdapter<XMLStreamWriter>`
      Throws:
        `Exception`