Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.html.tidy
Class ParserImpl  view ParserImpl download ParserImpl.java

java.lang.Object
  extended bycom.port80.html.tidy.ParserImpl

public class ParserImpl
extends java.lang.Object

HTML Parser implementation (c) 1998-2000 (W3C) MIT, INRIA, Keio University See Tidy.java for the copyright notice. Derived from HTML Tidy Release 4 Aug 2000

Version:
1.0, 1999/05/22, 1.0.1, 1999/05/29, 1.1, 1999/06/18 Java Bean, 1.2, 1999/07/10 Tidy Release 7 Jul 1999, 1.3, 1999/07/30 Tidy Release 26 Jul 1999, 1.4, 1999/09/04 DOM support, 1.5, 1999/10/23 Tidy Release 27 Sep 1999, 1.6, 1999/11/01 Tidy Release 22 Oct 1999, 1.7, 1999/12/06 Tidy Release 30 Nov 1999, 1.8, 2000/01/22 Tidy Release 13 Jan 2000, 1.9, 2000/06/03 Tidy Release 30 Apr 2000, 1.10, 2000/07/22 Tidy Release 8 Jul 2000, 1.11, 2000/08/16 Tidy Release 4 Aug 2000

Nested Class Summary
static class ParserImpl.ParseBlock
           
static class ParserImpl.ParseBody
          Parser for content of the 'body' element.
static class ParserImpl.ParseColGroup
           
static class ParserImpl.ParseDefList
           
static class ParserImpl.ParseFrameSet
           
static class ParserImpl.ParseHead
           
static class ParserImpl.ParseHTML
           
static class ParserImpl.ParseInline
          Parser for content (following the start tag) of an inline element eg.
static class ParserImpl.ParseList
           
static class ParserImpl.ParseNoFrames
           
static class ParserImpl.ParseOptGroup
           
static class ParserImpl.ParsePre
           
static class ParserImpl.ParseRow
           
static class ParserImpl.ParseRowGroup
           
static class ParserImpl.ParseScript
           
static class ParserImpl.ParseSelect
           
static class ParserImpl.ParseTableTag
           
static class ParserImpl.ParseText
           
static class ParserImpl.ParseTitle
           
 
Field Summary
private static Parser _parseBlock
           
private static Parser _parseBody
           
private static Parser _parseColGroup
           
private static Parser _parseDefList
           
private static Parser _parseFrameSet
           
private static Parser _parseHead
           
private static Parser _parseHTML
           
private static Parser _parseInline
           
private static Parser _parseList
           
private static Parser _parseNoFrames
           
private static Parser _parseOptGroup
           
private static Parser _parsePre
           
private static Parser _parseRow
           
private static Parser _parseRowGroup
           
private static Parser _parseScript
           
private static Parser _parseSelect
           
private static Parser _parseTableTag
           
private static Parser _parseText
           
private static Parser _parseTitle
           
 
Constructor Summary
ParserImpl()
           
 
Method Summary
static Parser getParseBlock()
           
static Parser getParseBody()
           
static Parser getParseColGroup()
           
static Parser getParseDefList()
           
static Parser getParseFrameSet()
           
static Parser getParseHead()
           
static Parser getParseHTML()
           
static Parser getParseInline()
           
static Parser getParseList()
           
static Parser getParseNoFrames()
           
static Parser getParseOptGroup()
           
static Parser getParsePre()
           
static Parser getParseRow()
           
static Parser getParseRowGroup()
           
static Parser getParseScript()
           
static Parser getParseSelect()
           
static Parser getParseTableTag()
           
static Parser getParseText()
           
static Parser getParseTitle()
           
(package private) static void moveToHead(Lexer lexer, Node element, Node node)
          Move 'node' to the 'head' section.
static Node parseDocument(Lexer lexer)
           
(package private) static void parseTag(Lexer lexer, Node node, short mode)
           
static Node parseXMLDocument(Lexer lexer)
           
static void parseXMLElement(Lexer lexer, Node element, short mode)
           
static boolean XMLPreserveWhiteSpace(Node element, TagTable tt)
          Indicates whether or not whitespace should be preserved for this element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_parseHTML

private static Parser _parseHTML

_parseHead

private static Parser _parseHead

_parseTitle

private static Parser _parseTitle

_parseScript

private static Parser _parseScript

_parseBody

private static Parser _parseBody

_parseFrameSet

private static Parser _parseFrameSet

_parseInline

private static Parser _parseInline

_parseList

private static Parser _parseList

_parseDefList

private static Parser _parseDefList

_parsePre

private static Parser _parsePre

_parseBlock

private static Parser _parseBlock

_parseTableTag

private static Parser _parseTableTag

_parseColGroup

private static Parser _parseColGroup

_parseRowGroup

private static Parser _parseRowGroup

_parseRow

private static Parser _parseRow

_parseNoFrames

private static Parser _parseNoFrames

_parseSelect

private static Parser _parseSelect

_parseText

private static Parser _parseText

_parseOptGroup

private static Parser _parseOptGroup
Constructor Detail

ParserImpl

public ParserImpl()
Method Detail

parseDocument

public static Node parseDocument(Lexer lexer)

XMLPreserveWhiteSpace

public static boolean XMLPreserveWhiteSpace(Node element,
                                            TagTable tt)
Indicates whether or not whitespace should be preserved for this element. If an xml:space attribute is found, then if the attribute value is preserve, returns true. For any other value, returns false. If an xml:space attribute was not found, then the following element names result in a return value of true: pre, script, style, and xsl:text. Finally, if a TagTable was passed in and the element appears as the "pre" element in the TagTable, then true will be returned. Otherwise, false is returned.


parseXMLElement

public static void parseXMLElement(Lexer lexer,
                                   Node element,
                                   short mode)

parseXMLDocument

public static Node parseXMLDocument(Lexer lexer)

getParseHTML

public static Parser getParseHTML()

getParseHead

public static Parser getParseHead()

getParseTitle

public static Parser getParseTitle()

getParseScript

public static Parser getParseScript()

getParseBody

public static Parser getParseBody()

getParseFrameSet

public static Parser getParseFrameSet()

getParseInline

public static Parser getParseInline()

getParseList

public static Parser getParseList()

getParseDefList

public static Parser getParseDefList()

getParsePre

public static Parser getParsePre()

getParseBlock

public static Parser getParseBlock()

getParseTableTag

public static Parser getParseTableTag()

getParseColGroup

public static Parser getParseColGroup()

getParseRowGroup

public static Parser getParseRowGroup()

getParseRow

public static Parser getParseRow()

getParseNoFrames

public static Parser getParseNoFrames()

getParseSelect

public static Parser getParseSelect()

getParseText

public static Parser getParseText()

getParseOptGroup

public static Parser getParseOptGroup()

parseTag

static void parseTag(Lexer lexer,
                     Node node,
                     short mode)

moveToHead

static void moveToHead(Lexer lexer,
                       Node element,
                       Node node)
Move 'node' to the 'head' section.