com.bea.xml.stream
Class StaticAllocator
java.lang.Object
com.bea.xml.stream.StaticAllocator
- All Implemented Interfaces:
- XMLEventAllocator
- public class StaticAllocator
- extends Object
- implements XMLEventAllocator
Return a single event for each allocate call
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
StaticAllocator
public StaticAllocator()
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.