com.bea.xml.stream
Class XMLEventAllocatorBase

java.lang.Object
  extended bycom.bea.xml.stream.XMLEventAllocatorBase
All Implemented Interfaces:
XMLEventAllocator

public class XMLEventAllocatorBase
extends Object
implements XMLEventAllocator

An allocator that creates an event per method call.


Field Summary
(package private)  XMLEventFactory factory
           
 
Constructor Summary
XMLEventAllocatorBase()
           
 
Method Summary
 XMLEvent allocate(XMLStreamReader reader)
           
 void allocate(XMLStreamReader reader, XMLEventConsumer consumer)
           
 Characters allocateCData(XMLStreamReader reader)
           
 Characters allocateCharacters(XMLStreamReader reader)
           
 Comment allocateComment(XMLStreamReader reader)
           
 DTD allocateDTD(XMLStreamReader reader)
           
 EndDocument allocateEndDocument(XMLStreamReader reader)
           
 EndElement allocateEndElement(XMLStreamReader reader)
           
 EntityReference allocateEntityReference(XMLStreamReader reader)
           
 ProcessingInstruction allocatePI(XMLStreamReader reader)
           
 Characters allocateSpace(XMLStreamReader reader)
           
 StartDocument allocateStartDocument(XMLStreamReader reader)
           
 StartElement allocateStartElement(XMLStreamReader reader)
           
 StartDocument allocateXMLDeclaration(XMLStreamReader reader)
           
static Iterator getAttributes(XMLStreamReader reader)
           
static Iterator getNamespaces(XMLStreamReader reader)
           
 XMLEventAllocator newInstance()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

factory

XMLEventFactory factory
Constructor Detail

XMLEventAllocatorBase

public XMLEventAllocatorBase()
Method Detail

newInstance

public XMLEventAllocator newInstance()
Specified by:
newInstance in interface XMLEventAllocator

getAttributes

public static Iterator getAttributes(XMLStreamReader reader)

getNamespaces

public static Iterator getNamespaces(XMLStreamReader reader)

allocateStartElement

public StartElement allocateStartElement(XMLStreamReader reader)
                                  throws XMLStreamException
Throws:
XMLStreamException

allocateEndElement

public EndElement allocateEndElement(XMLStreamReader reader)
                              throws XMLStreamException
Throws:
XMLStreamException

allocateCharacters

public Characters allocateCharacters(XMLStreamReader reader)
                              throws XMLStreamException
Throws:
XMLStreamException

allocateCData

public Characters allocateCData(XMLStreamReader reader)
                         throws XMLStreamException
Throws:
XMLStreamException

allocateSpace

public Characters allocateSpace(XMLStreamReader reader)
                         throws XMLStreamException
Throws:
XMLStreamException

allocateEntityReference

public EntityReference allocateEntityReference(XMLStreamReader reader)
                                        throws XMLStreamException
Throws:
XMLStreamException

allocatePI

public ProcessingInstruction allocatePI(XMLStreamReader reader)
                                 throws XMLStreamException
Throws:
XMLStreamException

allocateComment

public Comment allocateComment(XMLStreamReader reader)
                        throws XMLStreamException
Throws:
XMLStreamException

allocateStartDocument

public StartDocument allocateStartDocument(XMLStreamReader reader)
                                    throws XMLStreamException
Throws:
XMLStreamException

allocateEndDocument

public EndDocument allocateEndDocument(XMLStreamReader reader)
                                throws XMLStreamException
Throws:
XMLStreamException

allocateDTD

public DTD allocateDTD(XMLStreamReader reader)
                throws XMLStreamException
Throws:
XMLStreamException

allocateXMLDeclaration

public StartDocument allocateXMLDeclaration(XMLStreamReader reader)
                                     throws XMLStreamException
Throws:
XMLStreamException

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

toString

public String toString()


Copyright © 2004 . All Rights Reserved.