IT. Expert System.

Java Standard Edition (SE)

XMLEventAllocator


compact2, compact3
javax.xml.stream.util

Interface XMLEventAllocator



  • public interface XMLEventAllocator
    This interface defines a class that allows a user to register a way to allocate events given an XMLStreamReader. An implementation is not required to use the XMLEventFactory implementation but this is recommended. The XMLEventAllocator can be set on an XMLInputFactory using the property "javax.xml.stream.allocator"
    Since:
    1.6
    Version:
    1.0
    See Also:
    XMLInputFactory, XMLEventFactory
    • Method Detail

      • newInstance

        XMLEventAllocator newInstance()
        This method creates an instance of the XMLEventAllocator. This allows the XMLInputFactory to allocate a new instance per reader.
      • allocate

        XMLEvent allocate(XMLStreamReader reader)
                   throws XMLStreamException
        This method allocates an event given the current state of the XMLStreamReader. If this XMLEventAllocator does not have a one-to-one mapping between reader states and events this method will return null. This method must not modify the state of the XMLStreamReader.
        Parameters:
        reader - The XMLStreamReader to allocate from
        Returns:
        the event corresponding to the current reader state
        Throws:
        XMLStreamException
      • allocate

        void allocate(XMLStreamReader reader,
                      XMLEventConsumer consumer)
               throws XMLStreamException
        This method allocates an event or set of events given the current state of the XMLStreamReader and adds the event or set of events to the consumer that was passed in. This method can be used to expand or contract reader states into event states. This method may modify the state of the XMLStreamReader.
        Parameters:
        reader - The XMLStreamReader to allocate from
        consumer - The XMLEventConsumer to add to.
        Throws:
        XMLStreamException


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1253 / 158858316. Delta: 0.02796 с