@Deprecated public class DocumentHandlerToSAXAdapter extends java.lang.Object implements DocumentHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
END_SLASH_ATTR
Deprecated.
|
static java.lang.String |
NAMESPACE
Deprecated.
|
static java.lang.String |
QUOTES_ATTR
Deprecated.
|
Constructor and Description |
---|
DocumentHandlerToSAXAdapter(org.xml.sax.ContentHandler handler)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] buffer,
int offset,
int length)
Deprecated.
Called by HtmlParser if character data and tags are to be output for which no
special handling is necessary.
|
void |
onEnd()
Deprecated.
Receive notification of parsing end.
|
void |
onEndElement(java.lang.String tagName,
char[] buffer,
int offset,
int length)
Deprecated.
Called by HtmlParser for the end element of a tag that requires special handling.
|
void |
onStart()
Deprecated.
Receive notification of parsing start.
|
void |
onStartElement(java.lang.String tagName,
AttributeList attributes,
char[] buffer,
int offset,
int length,
boolean endSlash)
Deprecated.
Called by HtmlParser for the start element of a tag that requires special handling.
|
public static final java.lang.String NAMESPACE
public static final java.lang.String END_SLASH_ATTR
public static final java.lang.String QUOTES_ATTR
public DocumentHandlerToSAXAdapter(org.xml.sax.ContentHandler handler)
public void characters(char[] buffer, int offset, int length) throws java.io.IOException
characters
in interface DocumentHandler
buffer
- Character dataoffset
- Offset where character data startslength
- The length of the character datajava.io.IOException
- IOException
DocumentHandler.characters(char[], int, int)
public void onStartElement(java.lang.String tagName, AttributeList attributes, char[] buffer, int offset, int length, boolean endSlash) throws java.io.IOException
onStartElement
in interface DocumentHandler
tagName
- Tag nameattributes
- List of attributesbuffer
- Contains the whole tag including attributesoffset
- Offset where the character data startslength
- Length of the character dataendSlash
- Flag indicating whether the element is closed with an ending slash (xhtml-compliant)java.io.IOException
- IOException
public void onEndElement(java.lang.String tagName, char[] buffer, int offset, int length) throws java.io.IOException
onEndElement
in interface DocumentHandler
tagName
- Tag namebuffer
- Contains the whole tag including attributesoffset
- Offset where the character data startslength
- Length of the character datajava.io.IOException
- IOException
public void onEnd() throws java.io.IOException
DocumentHandler
onEnd
in interface DocumentHandler
java.io.IOException
- IOException
DocumentHandler.onEnd()
public void onStart() throws java.io.IOException
DocumentHandler
onStart
in interface DocumentHandler
java.io.IOException
- IOException
DocumentHandler.onStart()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"