API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text.html.parser. DocumentParser View Source
Author(s)
Sunita Mani
Since
Version
1.29 11/17/05
Serial
Hierarchy
 Object
      Parser
          DocumentParser
Implements
Subclasses
Description
public class DocumentParser
  A Parser for HTML Documents (actually, you can specify a DTD, but you should really only use this class with the html dtd in swing).
See also:   
Constructors
public DocumentParser (DTD dtd)
Methods
Hide/Show inherited methods
pack-private void addString (int c) [Inherited From Parser]
Add a char to the string buffer.
protected void endTag (boolean omitted) [Inherited From Parser]
  Handle an end tag.
protected void error (String err) [Inherited From Parser]
protected void error (String err, String arg1) [Inherited From Parser]
protected void error (String err, String arg1, String arg2) [Inherited From Parser]
protected void error (String err, String arg1, String arg2, String arg3) [Inherited From Parser]
Invoke the error handler.
pack-private void errorContext () throws ChangedCharSetException [Inherited From Parser]
  Error context.
protected void flushAttributes () [Inherited From Parser]
protected SimpleAttributeSet getAttributes () [Inherited From Parser]
pack-private int getBlockStartPosition () [Inherited From Parser]
  Returns the start position of the current block.
pack-private char getChars (int pos) [Inherited From Parser]
pack-private char getChars (int pos, int endPos) [Inherited From Parser]
protected int getCurrentLine () [Inherited From Parser]
 
protected int getCurrentPos () [Inherited From Parser]
pack-private String getEndOfLineString () [Inherited From Parser]
  Returns the end of line string.
pack-private String getString (int pos) [Inherited From Parser]
Get the string that's been accumulated.
protected void handleComment (char[] text) [Overrides Parser]
protected void handleEmptyTag (TagElement tag) throws ChangedCharSetException [Overrides Parser]
Handle Empty Tag.
protected void handleEndTag (TagElement tag) [Overrides Parser]
Handle End Tag.
protected void handleEOFInComment () [Inherited From Parser]
protected void handleError (int ln, String errorMsg) [Overrides Parser]
protected void handleStartTag (TagElement tag) [Overrides Parser]
Handle Start Tag.
protected void handleText (char[] data) [Overrides Parser]
Handle Text.
pack-private void handleText (TagElement tag) [Inherited From Parser]
Output text.
protected void handleTitle (char[] text) [Inherited From Parser]
Called when an HTML title tag is encountered.
pack-private boolean ignoreElement (Element elem) [Inherited From Parser]
pack-private boolean legalElementContext (Element elem) throws ChangedCharSetException [Inherited From Parser]
Create a legal content for an element.
pack-private void legalTagContext (TagElement tag) throws ChangedCharSetException [Inherited From Parser]
Create a legal context for a tag.
protected TagElement makeTag (Element elem) [Inherited From Parser]
protected TagElement makeTag (Element elem, boolean fictional) [Inherited From Parser]
Makes a TagElement.
protected void markFirstTime (Element elem) [Inherited From Parser]
Marks the first time a tag has been seen in a document
publicsynchronized void parse (Reader in) throws IOException [Inherited From Parser]
Parse an HTML stream, given a DTD.
public void parse (Reader in, ParserCallback callback, boolean ignoreCharSet) throws IOException
pack-private void parseAttributeSpecificationList (Element elem) throws IOException [Inherited From Parser]
  Parse attribute specification List.
pack-private String parseAttributeValue (boolean lower) throws IOException [Inherited From Parser]
  Parse attribute value.
pack-private void parseComment () throws IOException [Inherited From Parser]
  Parse a comment.
pack-private void parseContent () throws IOException [Inherited From Parser]
  Parse Content.
public String parseDTDMarkup () throws IOException [Inherited From Parser]
  Parses th Document Declaration Type markup declaration.
pack-private boolean parseIdentifier (boolean lower) throws IOException [Inherited From Parser]
  Parse identifier.
pack-private void parseInvalidTag () throws IOException [Inherited From Parser]
Parse an invalid tag.
pack-private void parseLiteral (boolean replace) throws IOException [Inherited From Parser]
  Parse literal content.
protected boolean parseMarkupDeclarations (StringBuffer strBuff) throws IOException [Inherited From Parser]
  Parse markup declarations.
pack-private void parseScript () throws IOException [Inherited From Parser]
pack-private void parseTag () throws IOException [Inherited From Parser]
Parse a start or end tag.
pack-private void resetStrBuffer () [Inherited From Parser]
pack-private void skipSpace () throws IOException [Inherited From Parser]
  Skip space.
protected void startTag (TagElement tag) throws ChangedCharSetException [Inherited From Parser]
  Handle a start tag.
pack-private int strIndexOf (char target) [Inherited From Parser]
Fields
Hide/Show inherited fields
protected DTD dtd [Inherited From Parser]
protected boolean strict [Inherited From Parser]
  This flag determines whether or not the Parser will be strict in enforcing SGML compatibility.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar