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 java.lang.Object
- implements XMLEventAllocator
Abstract base class for XMLEventAllocator
implementations.
- Version:
- $Revision: 1.1 $
- Author:
- Christian Niles
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseXMLEventAllocator
public BaseXMLEventAllocator()
allocate
public void allocate(XMLStreamReader reader,
XMLEventConsumer consumer)
throws XMLStreamException
- Specified by:
allocate
in interface XMLEventAllocator
- Throws:
XMLStreamException
allocate
public XMLEvent allocate(XMLStreamReader reader)
throws XMLStreamException
- Delegates allocation to the appropriate
allocateXXX
method.
- Specified by:
allocate
in interface XMLEventAllocator
- 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)