Package javanet.staxutils.events
Class BaseXMLEventAllocator
- java.lang.Object
-
- javanet.staxutils.events.BaseXMLEventAllocator
-
- All Implemented Interfaces:
XMLEventAllocator
- Direct Known Subclasses:
EventAllocator
public abstract class BaseXMLEventAllocator extends Object implements XMLEventAllocator
Abstract base class forXMLEventAllocatorimplementations.- Version:
- $Revision: 1.1 $
- Author:
- Christian Niles
-
-
Constructor Summary
Constructors Constructor Description BaseXMLEventAllocator()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.xml.stream.util.XMLEventAllocator
newInstance
-
-
-
-
Method Detail
-
allocate
public void allocate(XMLStreamReader reader, XMLEventConsumer consumer) throws XMLStreamException
- Specified by:
allocatein interfaceXMLEventAllocator- Throws:
XMLStreamException
-
allocate
public XMLEvent allocate(XMLStreamReader reader) throws XMLStreamException
Delegates allocation to the appropriateallocateXXXmethod.- Specified by:
allocatein interfaceXMLEventAllocator- Throws:
XMLStreamException
-
allocateStartElement
public abstract StartElement allocateStartElement(XMLStreamReader reader) throws XMLStreamException
- Throws:
XMLStreamException
-
allocateEndElement
public abstract EndElement allocateEndElement(XMLStreamReader reader) throws XMLStreamException
- Throws:
XMLStreamException
-
allocateCharacters
public abstract Characters allocateCharacters(XMLStreamReader reader) throws XMLStreamException
- Throws:
XMLStreamException
-
allocateCData
public abstract Characters allocateCData(XMLStreamReader reader) throws XMLStreamException
- Throws:
XMLStreamException
-
allocateIgnorableSpace
public abstract Characters allocateIgnorableSpace(XMLStreamReader reader) throws XMLStreamException
- Throws:
XMLStreamException
-
allocateEntityReference
public abstract EntityReference allocateEntityReference(XMLStreamReader reader) throws XMLStreamException
- Throws:
XMLStreamException
-
allocateComment
public abstract Comment allocateComment(XMLStreamReader reader) throws XMLStreamException
- Throws:
XMLStreamException
-
allocateDTD
public abstract DTD allocateDTD(XMLStreamReader reader) throws XMLStreamException
- Throws:
XMLStreamException
-
allocateStartDocument
public abstract StartDocument allocateStartDocument(XMLStreamReader reader) throws XMLStreamException
- Throws:
XMLStreamException
-
allocateEndDocument
public abstract EndDocument allocateEndDocument(XMLStreamReader reader) throws XMLStreamException
- Throws:
XMLStreamException
-
allocateProcessingInstruction
public abstract ProcessingInstruction allocateProcessingInstruction(XMLStreamReader reader) throws XMLStreamException
- Throws:
XMLStreamException
-
createStableNamespaceContext
public abstract NamespaceContext createStableNamespaceContext(XMLStreamReader reader)
-
createStableLocation
public abstract Location createStableLocation(XMLStreamReader reader)
-
-