com.cc.framework.util.parser.formatter
Class HtmlFormatterHandler

java.lang.Object
  extended bycom.cc.framework.util.parser.formatter.DefaultHandler
      extended bycom.cc.framework.util.parser.formatter.HtmlFormatterHandler
All Implemented Interfaces:
HtmlHandler, JspHandler

public class HtmlFormatterHandler
extends DefaultHandler

Creates a formated HTML output

Author:
Harald Schulz

Field Summary
 
Fields inherited from class com.cc.framework.util.parser.formatter.DefaultHandler
 
Fields inherited from interface com.cc.framework.util.parser.HtmlHandler
JSP_DECLARATION, JSP_EXPRESSION, JSP_SCRIPT, M_CLOSING, M_INLINE, M_OPENING
 
Constructor Summary
HtmlFormatterHandler(java.io.OutputStream out)
          Constructor
 
Method Summary
 void handleCharacters(char[] ch, int start, int length)
          Is called to process CDATA
protected  void handleCharacters(java.lang.String str)
           
 void handleComment(char[] ch, int start, int length)
          Is called to process a HTML comment
 void handleElement(java.lang.String name, HtmlAttributes attributes, int mode)
          Is called at the beginning or the end of an element
 void handleJspComment(char[] ch, int start, int length)
          Is called to process a JSP comment
 void handleJspDirective(java.lang.String directive, HtmlAttributes attributes)
          Is called for a JSP directive
 void handleJspScriptlet(int type, char[] ch, int start, int length)
          Is called to process a JSP scriptlet
 
Methods inherited from class com.cc.framework.util.parser.formatter.DefaultHandler
handleDocument, handleEntity, print, print, print
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlFormatterHandler

public HtmlFormatterHandler(java.io.OutputStream out)
Constructor

Parameters:
out - the output stream
Method Detail

handleElement

public void handleElement(java.lang.String name,
                          HtmlAttributes attributes,
                          int mode)
Description copied from interface: HtmlHandler
Is called at the beginning or the end of an element

Specified by:
handleElement in interface HtmlHandler
Overrides:
handleElement in class DefaultHandler
See Also:
DefaultHandler.handleElement(java.lang.String, com.cc.framework.util.parser.HtmlAttributes, int)

handleComment

public void handleComment(char[] ch,
                          int start,
                          int length)
Description copied from interface: HtmlHandler
Is called to process a HTML comment

Specified by:
handleComment in interface HtmlHandler
Overrides:
handleComment in class DefaultHandler
See Also:
DefaultHandler.handleComment(char[], int, int)

handleCharacters

protected void handleCharacters(java.lang.String str)

handleCharacters

public void handleCharacters(char[] ch,
                             int start,
                             int length)
Description copied from interface: HtmlHandler
Is called to process CDATA

Specified by:
handleCharacters in interface HtmlHandler
Overrides:
handleCharacters in class DefaultHandler
See Also:
DefaultHandler.handleCharacters(char[], int, int)

handleJspComment

public void handleJspComment(char[] ch,
                             int start,
                             int length)
Description copied from interface: JspHandler
Is called to process a JSP comment

Specified by:
handleJspComment in interface JspHandler
Overrides:
handleJspComment in class DefaultHandler
See Also:
DefaultHandler.handleJspComment(char[], int, int)

handleJspScriptlet

public void handleJspScriptlet(int type,
                               char[] ch,
                               int start,
                               int length)
Description copied from interface: JspHandler
Is called to process a JSP scriptlet

Specified by:
handleJspScriptlet in interface JspHandler
Overrides:
handleJspScriptlet in class DefaultHandler
See Also:
DefaultHandler.handleJspScriptlet(int, char[], int, int)

handleJspDirective

public void handleJspDirective(java.lang.String directive,
                               HtmlAttributes attributes)
Description copied from interface: JspHandler
Is called for a JSP directive

Specified by:
handleJspDirective in interface JspHandler
Overrides:
handleJspDirective in class DefaultHandler
See Also:
DefaultHandler.handleJspDirective(java.lang.String, com.cc.framework.util.parser.HtmlAttributes)


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.