com.bea.xml.stream
Class StaticAllocator

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

public class StaticAllocator
extends Object
implements XMLEventAllocator

Return a single event for each allocate call


Field Summary
(package private)  CharactersEvent cData
           
(package private)  CharactersEvent characters
           
(package private)  CommentEvent comment
           
(package private)  DTDEvent dtd
           
(package private)  EndDocumentEvent endDoc
           
(package private)  EndElementEvent endElement
           
(package private)  EntityReferenceEvent entity
           
(package private)  ProcessingInstructionEvent pi
           
(package private)  CharactersEvent space
           
(package private)  StartDocumentEvent startDoc
           
(package private)  StartElementEvent startElement
           
 
Constructor Summary
StaticAllocator()
           
 
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)
           
 XMLEventAllocator newInstance()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

startElement

StartElementEvent startElement

endElement

EndElementEvent endElement

characters

CharactersEvent characters

cData

CharactersEvent cData

space

CharactersEvent space

comment

CommentEvent comment

entity

EntityReferenceEvent entity

pi

ProcessingInstructionEvent pi

startDoc

StartDocumentEvent startDoc

endDoc

EndDocumentEvent endDoc

dtd

DTDEvent dtd
Constructor Detail

StaticAllocator

public StaticAllocator()
Method Detail

newInstance

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

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.