Uses of Class
javax.xml.stream.XMLStreamException
Packages that use XMLStreamException
Package
Description
Defines interfaces and classes for the Streaming API for XML (StAX).
Defines event interfaces for the Streaming API for XML (StAX).
Provides utility classes for the Streaming API for XML (StAX).
Provides StAX specific transformation classes.
-
Uses of XMLStreamException in javax.xml.stream
Methods in javax.xml.stream that throw XMLStreamExceptionModifier and TypeMethodDescriptionvoidAdd an event to the output stream Adding a START_ELEMENT will open a new namespace scope that will be closed when the corresponding END_ELEMENT is written.voidXMLEventWriter.add(XMLEventReader reader) Adds an entire stream to an output stream, calls next() on the inputStream argument until hasNext() returns false This should be treated as a convenience method that will perform the following loop over all the events in an event reader and call add on each event.voidXMLEventReader.close()Frees any resources associated with this Reader.voidXMLEventWriter.close()Frees any resources associated with this streamvoidXMLStreamReader.close()Frees any resources associated with this Reader.voidXMLStreamWriter.close()Close this writer and free any resources associated with the writer.abstract XMLEventReaderXMLInputFactory.createFilteredReader(XMLEventReader reader, EventFilter filter) Create a filtered event reader that wraps the filter around the event readerabstract XMLStreamReaderXMLInputFactory.createFilteredReader(XMLStreamReader reader, StreamFilter filter) Create a filtered reader that wraps the filter around the readerabstract XMLEventReaderXMLInputFactory.createXMLEventReader(InputStream stream) Create a new XMLEventReader from a java.io.InputStreamabstract XMLEventReaderXMLInputFactory.createXMLEventReader(InputStream stream, String encoding) Create a new XMLEventReader from a java.io.InputStreamabstract XMLEventReaderXMLInputFactory.createXMLEventReader(Reader reader) Create a new XMLEventReader from a reader.abstract XMLEventReaderXMLInputFactory.createXMLEventReader(String systemId, InputStream stream) Create a new XMLEventReader from a java.io.InputStreamabstract XMLEventReaderXMLInputFactory.createXMLEventReader(String systemId, Reader reader) Create a new XMLEventReader from a reader.abstract XMLEventReaderXMLInputFactory.createXMLEventReader(XMLStreamReader reader) Create a new XMLEventReader from an XMLStreamReader.abstract XMLEventReaderXMLInputFactory.createXMLEventReader(Source source) Create a new XMLEventReader from a JAXP source.abstract XMLEventWriterXMLOutputFactory.createXMLEventWriter(OutputStream stream) Create a new XMLEventWriter that writes to a streamabstract XMLEventWriterXMLOutputFactory.createXMLEventWriter(OutputStream stream, String encoding) Create a new XMLEventWriter that writes to a streamabstract XMLEventWriterXMLOutputFactory.createXMLEventWriter(Writer stream) Create a new XMLEventWriter that writes to a writerabstract XMLEventWriterXMLOutputFactory.createXMLEventWriter(Result result) Create a new XMLEventWriter that writes to a JAXP result.abstract XMLStreamReaderXMLInputFactory.createXMLStreamReader(InputStream stream) Create a new XMLStreamReader from a java.io.InputStream.abstract XMLStreamReaderXMLInputFactory.createXMLStreamReader(InputStream stream, String encoding) Create a new XMLStreamReader from a java.io.InputStream.abstract XMLStreamReaderXMLInputFactory.createXMLStreamReader(Reader reader) Create a new XMLStreamReader from a reader.abstract XMLStreamReaderXMLInputFactory.createXMLStreamReader(String systemId, InputStream stream) Create a new XMLStreamReader from a java.io.InputStream.abstract XMLStreamReaderXMLInputFactory.createXMLStreamReader(String systemId, Reader reader) Create a new XMLStreamReader from a java.io.InputStream.abstract XMLStreamReaderXMLInputFactory.createXMLStreamReader(Source source) Create a new XMLStreamReader from a JAXP source.abstract XMLStreamWriterXMLOutputFactory.createXMLStreamWriter(OutputStream stream) Create a new XMLStreamWriter that writes to a streamabstract XMLStreamWriterXMLOutputFactory.createXMLStreamWriter(OutputStream stream, String encoding) Create a new XMLStreamWriter that writes to a streamabstract XMLStreamWriterXMLOutputFactory.createXMLStreamWriter(Writer stream) Create a new XMLStreamWriter that writes to a writerabstract XMLStreamWriterXMLOutputFactory.createXMLStreamWriter(Result result) Create a new XMLStreamWriter that writes to a JAXP result.voidXMLEventWriter.flush()Writes any cached events to the underlying output mechanismvoidXMLStreamWriter.flush()Write any cached data to the underlying output mechanism.XMLEventReader.getElementText()Reads the content of a text-only element.XMLStreamReader.getElementText()Reads the content of a text-only element, an exception is thrown if this is not a text-only element.Gets the prefix the uri is bound toGets the prefix the uri is bound to.intXMLStreamReader.getTextCharacters(int sourceStart, char[] target, int targetStart, int length) Gets the the text associated with a CHARACTERS, SPACE or CDATA event.booleanXMLStreamReader.hasNext()Returns true if there are more parsing events and false if there are no more events.intXMLStreamReader.next()Get next parsing event - a processor may return all contiguous character data in a single chunk, or it may split it into several chunks.XMLEventReader.nextEvent()Gets the next XMLEvent.XMLEventReader.nextTag()Skips any insignificant space events until a START_ELEMENT or END_ELEMENT is reached.intXMLStreamReader.nextTag()Skips any white space (isWhiteSpace() returns true), COMMENT, or PROCESSING_INSTRUCTION, until a START_ELEMENT or END_ELEMENT is reached.XMLEventReader.peek()Check the next XMLEvent without reading it from the stream.voidReport the desired message in an application specific format.voidTest if the current event is of the given type and if the namespace and name match the current namespace and name of the current event.XMLResolver.resolveEntity(String publicID, String systemID, String baseURI, String namespace) Retrieves a resource.voidXMLEventWriter.setDefaultNamespace(String uri) Binds a URI to the default namespace This URI is bound in the scope of the current START_ELEMENT / END_ELEMENT pair.voidXMLStreamWriter.setDefaultNamespace(String uri) Binds a URI to the default namespace This URI is bound in the scope of the current START_ELEMENT / END_ELEMENT pair.voidXMLEventWriter.setNamespaceContext(NamespaceContext context) Sets the current namespace context for prefix and uri bindings.voidXMLStreamWriter.setNamespaceContext(NamespaceContext context) Sets the current namespace context for prefix and uri bindings.voidSets the prefix the uri is bound to.voidSets the prefix the uri is bound to.voidXMLStreamWriter.writeAttribute(String localName, String value) Writes an attribute to the output stream without a prefix.voidXMLStreamWriter.writeAttribute(String namespaceURI, String localName, String value) Writes an attribute to the output streamvoidXMLStreamWriter.writeAttribute(String prefix, String namespaceURI, String localName, String value) Writes an attribute to the output streamvoidXMLStreamWriter.writeCData(String data) Writes a CData sectionvoidXMLStreamWriter.writeCharacters(char[] text, int start, int len) Write text to the outputvoidXMLStreamWriter.writeCharacters(String text) Write text to the outputvoidXMLStreamWriter.writeComment(String data) Writes an xml comment with the data enclosedvoidXMLStreamWriter.writeDefaultNamespace(String namespaceURI) Writes the default namespace to the streamvoidWrite a DTD section.voidXMLStreamWriter.writeEmptyElement(String localName) Writes an empty element tag to the outputvoidXMLStreamWriter.writeEmptyElement(String namespaceURI, String localName) Writes an empty element tag to the outputvoidXMLStreamWriter.writeEmptyElement(String prefix, String localName, String namespaceURI) Writes an empty element tag to the outputvoidXMLStreamWriter.writeEndDocument()Closes any start tags and writes corresponding end tags.voidXMLStreamWriter.writeEndElement()Writes an end tag to the output relying on the internal state of the writer to determine the prefix and local name of the event.voidXMLStreamWriter.writeEntityRef(String name) Writes an entity referencevoidXMLStreamWriter.writeNamespace(String prefix, String namespaceURI) Writes a namespace to the output stream If the prefix argument to this method is the empty string, "xmlns", or null this method will delegate to writeDefaultNamespacevoidXMLStreamWriter.writeProcessingInstruction(String target) Writes a processing instructionvoidXMLStreamWriter.writeProcessingInstruction(String target, String data) Writes a processing instructionvoidXMLStreamWriter.writeStartDocument()Write the XML Declaration.voidXMLStreamWriter.writeStartDocument(String version) Write the XML Declaration.voidXMLStreamWriter.writeStartDocument(String encoding, String version) Write the XML Declaration.voidXMLStreamWriter.writeStartElement(String localName) Writes a start tag to the output.voidXMLStreamWriter.writeStartElement(String namespaceURI, String localName) Writes a start tag to the outputvoidXMLStreamWriter.writeStartElement(String prefix, String localName, String namespaceURI) Writes a start tag to the output -
Uses of XMLStreamException in javax.xml.stream.events
Methods in javax.xml.stream.events that throw XMLStreamExceptionModifier and TypeMethodDescriptionvoidXMLEvent.writeAsEncodedUnicode(Writer writer) This method will write the XMLEvent as per the XML 1.0 specification as Unicode characters. -
Uses of XMLStreamException in javax.xml.stream.util
Methods in javax.xml.stream.util that throw XMLStreamExceptionModifier and TypeMethodDescriptionvoidThis method adds an event to the consumer.XMLEventAllocator.allocate(XMLStreamReader reader) This method allocates an event given the current state of the XMLStreamReader.voidXMLEventAllocator.allocate(XMLStreamReader reader, XMLEventConsumer consumer) This method allocates an event or set of events given the current state of the XMLStreamReader and adds the event or set of events to the consumer that was passed in.voidEventReaderDelegate.close()voidStreamReaderDelegate.close()EventReaderDelegate.getElementText()StreamReaderDelegate.getElementText()intStreamReaderDelegate.getTextCharacters(int sourceStart, char[] target, int targetStart, int length) booleanStreamReaderDelegate.hasNext()intStreamReaderDelegate.next()EventReaderDelegate.nextEvent()EventReaderDelegate.nextTag()intStreamReaderDelegate.nextTag()EventReaderDelegate.peek()void -
Uses of XMLStreamException in javax.xml.transform.stax
Constructors in javax.xml.transform.stax that throw XMLStreamExceptionModifierConstructorDescriptionStAXSource(XMLEventReader xmlEventReader) Creates a new instance of aStAXSourceby supplying anXMLEventReader.