com.bea.xml.stream

Class StaticAllocator

public class StaticAllocator extends Object implements XMLEventAllocator

Return a single event for each allocate call

Constructor Summary
StaticAllocator()
Method Summary
XMLEventallocate(XMLStreamReader reader)
voidallocate(XMLStreamReader reader, XMLEventConsumer consumer)
CharactersallocateCData(XMLStreamReader reader)
CharactersallocateCharacters(XMLStreamReader reader)
CommentallocateComment(XMLStreamReader reader)
DTDallocateDTD(XMLStreamReader reader)
EndDocumentallocateEndDocument(XMLStreamReader reader)
EndElementallocateEndElement(XMLStreamReader reader)
EntityReferenceallocateEntityReference(XMLStreamReader reader)
ProcessingInstructionallocatePI(XMLStreamReader reader)
CharactersallocateSpace(XMLStreamReader reader)
StartDocumentallocateStartDocument(XMLStreamReader reader)
StartElementallocateStartElement(XMLStreamReader reader)
StartDocumentallocateXMLDeclaration(XMLStreamReader reader)
XMLEventAllocatornewInstance()
StringtoString()

Constructor Detail

StaticAllocator

public StaticAllocator()

Method Detail

allocate

public XMLEvent allocate(XMLStreamReader reader)

allocate

public void allocate(XMLStreamReader reader, XMLEventConsumer consumer)

allocateCData

public Characters allocateCData(XMLStreamReader reader)

allocateCharacters

public Characters allocateCharacters(XMLStreamReader reader)

allocateComment

public Comment allocateComment(XMLStreamReader reader)

allocateDTD

public DTD allocateDTD(XMLStreamReader reader)

allocateEndDocument

public EndDocument allocateEndDocument(XMLStreamReader reader)

allocateEndElement

public EndElement allocateEndElement(XMLStreamReader reader)

allocateEntityReference

public EntityReference allocateEntityReference(XMLStreamReader reader)

allocatePI

public ProcessingInstruction allocatePI(XMLStreamReader reader)

allocateSpace

public Characters allocateSpace(XMLStreamReader reader)

allocateStartDocument

public StartDocument allocateStartDocument(XMLStreamReader reader)

allocateStartElement

public StartElement allocateStartElement(XMLStreamReader reader)

allocateXMLDeclaration

public StartDocument allocateXMLDeclaration(XMLStreamReader reader)

newInstance

public XMLEventAllocator newInstance()

toString

public String toString()