org.paneris.bibliomania.util
Class FictionalNotifyingDocumentParser

java.lang.Object
  extended by javax.swing.text.html.parser.Parser
      extended by javax.swing.text.html.parser.DocumentParser
          extended by org.paneris.bibliomania.util.FictionalNotifyingDocumentParser
All Implemented Interfaces:
javax.swing.text.html.parser.DTDConstants

public class FictionalNotifyingDocumentParser
extends javax.swing.text.html.parser.DocumentParser

An extended DocumentParser.


Field Summary
protected  FictionalNotifiableParserCallback callback
           
 
Fields inherited from class javax.swing.text.html.parser.Parser
dtd, strict
 
Fields inherited from interface javax.swing.text.html.parser.DTDConstants
ANY, CDATA, CONREF, CURRENT, DEFAULT, EMPTY, ENDTAG, ENTITIES, ENTITY, FIXED, GENERAL, ID, IDREF, IDREFS, IMPLIED, MD, MODEL, MS, NAME, NAMES, NMTOKEN, NMTOKENS, NOTATION, NUMBER, NUMBERS, NUTOKEN, NUTOKENS, PARAMETER, PI, PUBLIC, RCDATA, REQUIRED, SDATA, STARTTAG, SYSTEM
 
Constructor Summary
FictionalNotifyingDocumentParser(javax.swing.text.html.parser.DTD dtd)
          Constructor.
 
Method Summary
protected  void handleEmptyTag(javax.swing.text.html.parser.TagElement tag)
           
protected  void handleEndTag(javax.swing.text.html.parser.TagElement tag)
           
protected  void handleStartTag(javax.swing.text.html.parser.TagElement tag)
           
 void parse(java.io.Reader in, FictionalNotifiableParserCallback callbackP, boolean ignoreCharSet)
          Parse the document.
 
Methods inherited from class javax.swing.text.html.parser.DocumentParser
handleComment, handleError, handleText, parse
 
Methods inherited from class javax.swing.text.html.parser.Parser
endTag, error, error, error, error, flushAttributes, getAttributes, getCurrentLine, getCurrentPos, handleEOFInComment, handleTitle, makeTag, makeTag, markFirstTime, parse, parseDTDMarkup, parseMarkupDeclarations, startTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

callback

protected FictionalNotifiableParserCallback callback
Constructor Detail

FictionalNotifyingDocumentParser

public FictionalNotifyingDocumentParser(javax.swing.text.html.parser.DTD dtd)
Constructor.

Parameters:
dtd - the Document Type Definition
Method Detail

parse

public void parse(java.io.Reader in,
                  FictionalNotifiableParserCallback callbackP,
                  boolean ignoreCharSet)
           throws java.io.IOException
Parse the document.

Parameters:
in - the Reader to read document from
callbackP - the callaback to call
ignoreCharSet - whether to ignore the character set declaration
Throws:
java.io.IOException

handleEmptyTag

protected void handleEmptyTag(javax.swing.text.html.parser.TagElement tag)
                       throws javax.swing.text.ChangedCharSetException
Overrides:
handleEmptyTag in class javax.swing.text.html.parser.DocumentParser
Throws:
javax.swing.text.ChangedCharSetException

handleStartTag

protected void handleStartTag(javax.swing.text.html.parser.TagElement tag)
Overrides:
handleStartTag in class javax.swing.text.html.parser.DocumentParser

handleEndTag

protected void handleEndTag(javax.swing.text.html.parser.TagElement tag)
Overrides:
handleEndTag in class javax.swing.text.html.parser.DocumentParser


Copyright © 2000-2009 PanEris. All Rights Reserved.