public class StAXEventFactory extends javax.xml.stream.XMLEventFactory
Constructor and Description |
---|
StAXEventFactory()
Creates a new instance of StAXEventFactory
|
newFactory, newFactory, newInstance, newInstance
public StAXEventFactory()
public void setLocation(javax.xml.stream.Location location)
setLocation
in class javax.xml.stream.XMLEventFactory
location
- the location to set on each event createdpublic javax.xml.stream.events.Attribute createAttribute(String prefix, String namespaceURI, String localName, String value)
createAttribute
in class javax.xml.stream.XMLEventFactory
prefix
- the prefix of this attribute, may not be nullnamespaceURI
- the attribute value is set to this value, may not be nulllocalName
- the local name of the XML name of the attribute, localName cannot be nullvalue
- the attribute value to set, may not be nullpublic javax.xml.stream.events.Attribute createAttribute(String localName, String value)
createAttribute
in class javax.xml.stream.XMLEventFactory
localName
- the local name of the XML name of the attribute, localName cannot be nullvalue
- the attribute value to set, may not be nullpublic javax.xml.stream.events.Attribute createAttribute(QName name, String value)
createAttribute
in class javax.xml.stream.XMLEventFactory
public javax.xml.stream.events.Namespace createNamespace(String namespaceURI)
createNamespace
in class javax.xml.stream.XMLEventFactory
namespaceURI
- the default namespace uripublic javax.xml.stream.events.Namespace createNamespace(String prefix, String namespaceURI)
createNamespace
in class javax.xml.stream.XMLEventFactory
prefix
- the prefix of this namespace, may not be nullnamespaceURI
- the attribute value is set to this value, may not be nullpublic javax.xml.stream.events.StartElement createStartElement(QName name, Iterator attributes, Iterator namespaces)
createStartElement
in class javax.xml.stream.XMLEventFactory
name
- the qualified name of the attribute, may not be nullattributes
- an optional unordered set of objects that
implement Attribute to add to the new StartElement, may be nullnamespaces
- an optional unordered set of objects that
implement Namespace to add to the new StartElement, may be nullpublic javax.xml.stream.events.StartElement createStartElement(String prefix, String namespaceUri, String localName)
createStartElement
in class javax.xml.stream.XMLEventFactory
public javax.xml.stream.events.StartElement createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces)
createStartElement
in class javax.xml.stream.XMLEventFactory
public javax.xml.stream.events.StartElement createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces, NamespaceContext context)
createStartElement
in class javax.xml.stream.XMLEventFactory
public javax.xml.stream.events.EndElement createEndElement(QName name, Iterator namespaces)
createEndElement
in class javax.xml.stream.XMLEventFactory
name
- the qualified name of the EndElementnamespaces
- an optional unordered set of objects that
implement Namespace that have gone out of scope, may be nullpublic javax.xml.stream.events.EndElement createEndElement(String prefix, String namespaceUri, String localName)
createEndElement
in class javax.xml.stream.XMLEventFactory
namespaceUri
- the uri of the QName of the new StartElementlocalName
- the local name of the QName of the new StartElementprefix
- the prefix of the QName of the new StartElementpublic javax.xml.stream.events.EndElement createEndElement(String prefix, String namespaceUri, String localName, Iterator namespaces)
createEndElement
in class javax.xml.stream.XMLEventFactory
namespaceUri
- the uri of the QName of the new StartElementlocalName
- the local name of the QName of the new StartElementprefix
- the prefix of the QName of the new StartElementnamespaces
- an unordered set of objects that implement
Namespace that have gone out of scope, may be nullpublic javax.xml.stream.events.Characters createCharacters(String content)
createCharacters
in class javax.xml.stream.XMLEventFactory
content
- the string to createpublic javax.xml.stream.events.Characters createCData(String content)
createCData
in class javax.xml.stream.XMLEventFactory
content
- the string to createpublic javax.xml.stream.events.Characters createSpace(String content)
createSpace
in class javax.xml.stream.XMLEventFactory
content
- the content of the space to createpublic javax.xml.stream.events.Characters createIgnorableSpace(String content)
createIgnorableSpace
in class javax.xml.stream.XMLEventFactory
content
- the space to createpublic javax.xml.stream.events.StartDocument createStartDocument()
createStartDocument
in class javax.xml.stream.XMLEventFactory
public javax.xml.stream.events.StartDocument createStartDocument(String encoding)
createStartDocument
in class javax.xml.stream.XMLEventFactory
encoding
- the encoding stylepublic javax.xml.stream.events.StartDocument createStartDocument(String encoding, String version)
createStartDocument
in class javax.xml.stream.XMLEventFactory
encoding
- the encoding styleversion
- the XML versionpublic javax.xml.stream.events.StartDocument createStartDocument(String encoding, String version, boolean standalone)
createStartDocument
in class javax.xml.stream.XMLEventFactory
encoding
- the encoding styleversion
- the XML versionstandalone
- the status of standalone may be set to "true" or "false"public javax.xml.stream.events.EndDocument createEndDocument()
createEndDocument
in class javax.xml.stream.XMLEventFactory
public javax.xml.stream.events.EntityReference createEntityReference(String name, javax.xml.stream.events.EntityDeclaration entityDeclaration)
createEntityReference
in class javax.xml.stream.XMLEventFactory
name
- The name of the referenceentityDeclaration
- the declaration for the eventpublic javax.xml.stream.events.Comment createComment(String text)
createComment
in class javax.xml.stream.XMLEventFactory
text
- The text of the comment
a Comment eventpublic javax.xml.stream.events.DTD createDTD(String dtd)
createDTD
in class javax.xml.stream.XMLEventFactory
dtd
- the text of the document type definitionpublic javax.xml.stream.events.ProcessingInstruction createProcessingInstruction(String target, String data)
createProcessingInstruction
in class javax.xml.stream.XMLEventFactory
target
- The target of the processing instructiondata
- The text of the processing instructionCopyright © 2019 Oracle Corpration. All Rights Reserved.