org.xml.sax.ContentHandler and LexicalHandler
that writes to a javax.xml.stream.util.XMLEventConsumer .
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final XMLEventFactory | |
| private final XMLEventWriter |
| Access | Constructor and Description |
|---|---|
| public | StaxEventHandler(XMLEventWriter
the writer to write events to eventWriter)Construct a new instance of the |
| public | StaxEventHandler(XMLEventWriter
the writer to write events to eventWriter, XMLEventFactory the factory used to create events factory)Construct a new instance of the |
| eventFactory | back to summary |
|---|---|
| private final XMLEventFactory eventFactory | |
| eventWriter | back to summary |
|---|---|
| private final XMLEventWriter eventWriter | |
| StaxEventHandler | back to summary |
|---|---|
| public StaxEventHandler(XMLEventWriter eventWriter) Construct a new instance of the
| |
| StaxEventHandler | back to summary |
|---|---|
| public StaxEventHandler(XMLEventWriter eventWriter, XMLEventFactory factory) Construct a new instance of the
| |
| cDataInternal | back to summary |
|---|---|
| protected void cDataInternal(String data) throws XMLStreamException Implements abstract org.
| |
| charactersInternal | back to summary |
|---|---|
| protected void charactersInternal(String data) throws XMLStreamException Implements abstract org.
| |
| commentInternal | back to summary |
|---|---|
| protected void commentInternal(String comment) throws XMLStreamException Implements abstract org.
| |
| dtdInternal | back to summary |
|---|---|
| protected void dtdInternal(String dtd) throws XMLStreamException Implements abstract org.
| |
| endDocumentInternal | back to summary |
|---|---|
| protected void endDocumentInternal() throws XMLStreamException Implements abstract org.
| |
| endElementInternal | back to summary |
|---|---|
| protected void endElementInternal(QName name, Map<String, String> namespaceMapping) throws XMLStreamException Implements abstract org.
| |
| getAttributes | back to summary |
|---|---|
| private List | |
| getNamespaces | back to summary |
|---|---|
| private List | |
| ignorableWhitespaceInternal | back to summary |
|---|---|
| protected void ignorableWhitespaceInternal(String data) throws XMLStreamException Implements abstract org.
| |
| processingInstructionInternal | back to summary |
|---|---|
| protected void processingInstructionInternal(String target, String data) throws XMLStreamException Implements abstract org.
| |
| setDocumentLocator | back to summary |
|---|---|
| public void setDocumentLocator(Locator locator) Implements org. Doc from org. Receive an object for locating the origin of SAX document events. SAX parsers are strongly encouraged (though not absolutely required) to supply a locator: if it does so, it must supply the locator to the application by invoking this method before invoking any of the other methods in the ContentHandler interface. The locator allows the application to determine the end position of any document-related event, even if the parser is not reporting an error. Typically, the application will use this information for reporting its own errors (such as character content that does not match an application's business rules). The information returned by the locator is probably not sufficient for use with a search engine. Note that the locator will return correct information only
during the invocation SAX event callbacks after
| |
| skippedEntityInternal | back to summary |
|---|---|
| protected void skippedEntityInternal(String name) Implements abstract org.
| |
| startDocumentInternal | back to summary |
|---|---|
| protected void startDocumentInternal() throws XMLStreamException Implements abstract org.
| |
| startElementInternal | back to summary |
|---|---|
| protected void startElementInternal(QName name, Attributes atts, Map<String, String> namespaceMapping) throws XMLStreamException Implements abstract org.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | getCharacterOffset()
Implements javax. |
| public int | getColumnNumber()
Implements javax. |
| public int | getLineNumber()
Implements javax. |
| public String | |
| public String |
| locator | back to summary |
|---|---|
| private final Locator locator | |
| LocatorLocationAdapter | back to summary |
|---|---|
| public LocatorLocationAdapter(Locator locator) | |
| getCharacterOffset | back to summary |
|---|---|
| public int getCharacterOffset() Implements javax. Doc from javax. Return the byte or character offset into the input source this location is pointing to. If the input source is a file or a byte stream then this is the byte offset into that stream, but if the input source is a character media then the offset is the character offset. Returns -1 if there is no offset available.
| |
| getColumnNumber | back to summary |
|---|---|
| public int getColumnNumber() Implements javax. Doc from javax. Return the column number where the current event ends, returns -1 if none is available.
| |
| getLineNumber | back to summary |
|---|---|
| public int getLineNumber() Implements javax. Doc from javax. Return the line number where the current event ends, returns -1 if none is available.
| |
| getPublicId | back to summary |
|---|---|
| public String getPublicId() Implements javax. Doc from javax. Returns the public ID of the XML | |
| getSystemId | back to summary |
|---|---|
| public String getSystemId() Implements javax. Doc from javax. Returns the system ID of the XML | |