java.lang.Object
javax.xml.stream.XMLEventFactory
This interface defines a utility class for creating instances of
XMLEvents
- Since:
- 1.6
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected constructor to prevent instantiation. -
Method Summary
Modifier and TypeMethodDescriptionabstract AttributecreateAttribute(String localName, String value) Create a new Attributeabstract AttributecreateAttribute(String prefix, String namespaceURI, String localName, String value) Create a new Attributeabstract AttributecreateAttribute(QName name, String value) Create a new Attributeabstract CharacterscreateCData(String content) Create a Characters event with the CData flag set to trueabstract CharacterscreateCharacters(String content) Create a Characters event, this method does not check if the content is all whitespace.abstract CommentcreateComment(String text) Create a comment.abstract DTDCreate a document type definition event This string contains the entire document type declaration that matches the doctypedecl in the XML 1.0 specificationabstract EndDocumentCreates a new instance of an EndDocument eventabstract EndElementcreateEndElement(String prefix, String namespaceUri, String localName) Create a new EndElementabstract EndElementcreateEndElement(String prefix, String namespaceUri, String localName, Iterator<? extends Namespace> namespaces) Create a new EndElementabstract EndElementcreateEndElement(QName name, Iterator<? extends Namespace> namespaces) Create a new EndElementabstract EntityReference