com.bea.xml.stream
Class XMLEventAllocatorBase
java.lang.Object
com.bea.xml.stream.XMLEventAllocatorBase
- All Implemented Interfaces:
- XMLEventAllocator
- public class XMLEventAllocatorBase
- extends Object
- implements XMLEventAllocator
An allocator that creates an event per method call.
factory
XMLEventFactory factory
XMLEventAllocatorBase
public XMLEventAllocatorBase()
newInstance
public XMLEventAllocator newInstance()
- Specified by:
newInstance in interface XMLEventAllocator
getAttributes
public static Iterator getAttributes(XMLStreamReader reader)
getNamespaces
public static Iterator getNamespaces(XMLStreamReader reader)
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.