Package javanet.staxutils.events
Class BaseXMLEventAllocator
java.lang.Object
javanet.staxutils.events.BaseXMLEventAllocator
- All Implemented Interfaces:
XMLEventAllocator
- Direct Known Subclasses:
EventAllocator
Abstract base class for
XMLEventAllocator implementations.- Version:
- $Revision: 1.1 $
- Author:
- Christian Niles
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocate(XMLStreamReader reader) Delegates allocation to the appropriateallocateXXXmethod.voidallocate(XMLStreamReader reader, XMLEventConsumer consumer) abstract CharactersallocateCData(XMLStreamReader reader) abstract CharactersallocateCharacters(XMLStreamReader reader) abstract CommentallocateComment(XMLStreamReader reader) abstract DTDallocateDTD(XMLStreamReader reader) abstract EndDocumentallocateEndDocument(XMLStreamReader reader) abstract EndElementallocateEndElement(XMLStreamReader reader) abstract EntityReferenceabstract Charactersabstract ProcessingInstructionabstract StartDocumentallocateStartDocument(XMLStreamReader reader) abstract StartElementallocateStartElement(XMLStreamReader reader) abstract LocationcreateStableLocation(XMLStreamReader reader) abstract NamespaceContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.xml.stream.util.XMLEventAllocator
newInstance
-
Constructor Details
-
BaseXMLEventAllocator
public BaseXMLEventAllocator()
-
-
Method Details
-
allocate
- Specified by:
allocatein interfaceXMLEventAllocator- Throws:
XMLStreamException
-
allocate
Delegates allocation to the appropriateallocateXXXmethod.- Specified by:
allocatein interfaceXMLEventAllocator- Throws:
XMLStreamException
-
allocateStartElement
- Throws:
XMLStreamException
-
allocateEndElement
- Throws:
XMLStreamException
-
allocateCharacters
- Throws:
XMLStreamException
-
allocateCData
- Throws:
XMLStreamException
-
allocateIgnorableSpace
- Throws:
XMLStreamException
-
allocateEntityReference
public abstract EntityReference allocateEntityReference(XMLStreamReader reader) throws XMLStreamException - Throws:
XMLStreamException
-
allocateComment
- Throws:
XMLStreamException
-
allocateDTD
- Throws:
XMLStreamException
-
allocateStartDocument
public abstract StartDocument allocateStartDocument(XMLStreamReader reader) throws XMLStreamException - Throws:
XMLStreamException
-
allocateEndDocument
- Throws:
XMLStreamException
-
allocateProcessingInstruction
public abstract ProcessingInstruction allocateProcessingInstruction(XMLStreamReader reader) throws XMLStreamException - Throws:
XMLStreamException
-
createStableNamespaceContext
-
createStableLocation
-