org.apache.synapse.commons.staxon.core.event

## Class SimpleXMLEventAllocator

- java.lang.Object
- - org.apache.synapse.commons.staxon.core.event.SimpleXMLEventAllocator

- All Implemented Interfaces:
    XMLEventAllocator

      public class SimpleXMLEventAllocator
      extends Object
      implements XMLEventAllocator

  Simple implementation of `XMLEventAllocator`.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleXMLEventAllocator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `XMLEvent` | `allocate(XMLStreamReader reader)`
    `void` | `allocate(XMLStreamReader reader, XMLEventConsumer consumer)`
    `XMLEventAllocator` | `newInstance()`

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

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

- - ### Constructor Detail

    - #### SimpleXMLEventAllocator

          public SimpleXMLEventAllocator()

  - ### Method Detail

    - #### newInstance

          public XMLEventAllocator newInstance()

      Specified by:
        `newInstance` in interface `XMLEventAllocator`

    - #### allocate

          public XMLEvent allocate(XMLStreamReader reader)
                            throws XMLStreamException

      Specified by:
        `allocate` in interface `XMLEventAllocator`
      Throws:
        `XMLStreamException`

    - #### allocate

          public void allocate(XMLStreamReader reader,
                               XMLEventConsumer consumer)
                        throws XMLStreamException

      Specified by:
        `allocate` in interface `XMLEventAllocator`
      Throws:
        `XMLStreamException`

Copyright © 2005–2018 Apache Software Foundation. All rights reserved.