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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.port80.html.tidy.Configuration
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TidyConfiguration

public class Configuration
extends java.lang.Object
implements java.io.Serializable


Field Summary
private  java.util.Properties _properties
           
static int ASCII
           
protected  boolean BreakBeforeBR
           
protected  boolean BurstSlides
           
protected  int CharEncoding
           
protected  boolean CompactFormat
           
static int DOCTYPE_AUTO
           
static int DOCTYPE_LOOSE
           
static int DOCTYPE_OMIT
           
static int DOCTYPE_STRICT
           
static int DOCTYPE_USER
           
protected  int docTypeMode
           
protected  java.lang.String docTypeStr
           
protected  boolean doReformat
          Reformat mode perform inlineDup, run clean up filters ...
protected  boolean DropEmptyParas
           
protected  boolean DropFontTags
           
protected  boolean Emacs
           
protected  boolean EncloseBlockText
           
protected  boolean EncloseBodyText
           
protected  java.lang.String errfile
           
private  AttributeTable fAttributeTable
           
protected  boolean FixAlt
           
protected  boolean FixBackslash
           
protected  boolean FixComments
           
private  TagTable fTagTable
           
protected  boolean HideEndTags
           
protected  int indent
           
protected  boolean IndentAttributes
           
protected  boolean IndentContent
           
static int ISO2022
           
protected  boolean KeepFileTimes
           
static int LATIN1
           
protected  boolean LiteralAttribs
           
protected  boolean LogicalEmphasis
           
static int MACROMAN
           
protected  boolean MakeClean
           
protected  boolean NumEntities
           
protected  boolean OnlyErrors
           
protected  boolean Quiet
           
protected  boolean QuoteAmpersand
           
protected  boolean QuoteMarks
           
protected  boolean QuoteNbsp
           
static int RAW
           
protected  boolean RawOut
           
protected  boolean ShowInfo
           
protected  boolean ShowWarnings
           
protected  java.lang.String slidestyle
           
protected  boolean SmartIndent
           
protected  int tabsize
           
protected  boolean TidyMark
           
protected  boolean UpperCaseAttrs
           
protected  boolean UpperCaseTags
           
static int UTF8
           
protected  boolean Word2000
           
protected  boolean WrapAsp
           
protected  boolean WrapAttVals
           
protected  boolean WrapJste
           
protected  int wraplen
           
protected  boolean WrapPhp
           
protected  boolean WrapScriptlets
           
protected  boolean WrapSection
           
protected  boolean writeback
           
protected  boolean xHTML
           
protected  boolean XmlOut
           
protected  boolean XmlPi
           
protected  boolean XmlPIs
           
protected  boolean XmlSpace
           
protected  boolean XmlTags
           
 
Constructor Summary
Configuration()
           
 
Method Summary
 void addProps(java.util.Properties p)
           
 void adjust()
           
 AttributeTable getAttributeTable()
           
 TagTable getTagTable()
           
private  void parseBlockTagNames(java.lang.String s, java.lang.String option)
           
private static boolean parseBool(java.lang.String s, java.lang.String option)
           
private static int parseCharEncoding(java.lang.String s, java.lang.String option)
           
protected  java.lang.String parseDocType(java.lang.String s, java.lang.String option)
           
private  void parseEmptyTagNames(java.lang.String s, java.lang.String option)
           
 void parseFile(java.lang.String filename)
           
private  boolean parseIndent(java.lang.String s, java.lang.String option)
           
private  void parseInlineTagNames(java.lang.String s, java.lang.String option)
           
private static int parseInt(java.lang.String s, java.lang.String option)
           
private static boolean parseInvBool(java.lang.String s, java.lang.String option)
           
private static java.lang.String parseName(java.lang.String s, java.lang.String option)
           
private  void parsePreTagNames(java.lang.String s, java.lang.String option)
           
private  void parseProps()
           
 void setAttributeTable(AttributeTable table)
           
 void setTagTable(TagTable table)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RAW

public static final int RAW
See Also:
Constant Field Values

ASCII

public static final int ASCII
See Also:
Constant Field Values

LATIN1

public static final int LATIN1
See Also:
Constant Field Values

UTF8

public static final int UTF8
See Also:
Constant Field Values

ISO2022

public static final int ISO2022
See Also:
Constant Field Values

MACROMAN

public static final int MACROMAN
See Also:
Constant Field Values

DOCTYPE_OMIT

public static final int DOCTYPE_OMIT
See Also:
Constant Field Values

DOCTYPE_AUTO

public static final int DOCTYPE_AUTO
See Also:
Constant Field Values

DOCTYPE_STRICT

public static final int DOCTYPE_STRICT
See Also:
Constant Field Values

DOCTYPE_LOOSE

public static final int DOCTYPE_LOOSE
See Also:
Constant Field Values

DOCTYPE_USER

public static final int DOCTYPE_USER
See Also:
Constant Field Values

indent

protected int indent

tabsize

protected int tabsize

wraplen

protected int wraplen

CharEncoding

protected int CharEncoding

docTypeMode

protected int docTypeMode

slidestyle

protected java.lang.String slidestyle

docTypeStr

protected java.lang.String docTypeStr

errfile

protected java.lang.String errfile

writeback

protected boolean writeback

OnlyErrors

protected boolean OnlyErrors

ShowWarnings

protected boolean ShowWarnings

ShowInfo

protected boolean ShowInfo

Quiet

protected boolean Quiet

IndentContent

protected boolean IndentContent

SmartIndent

protected boolean SmartIndent

HideEndTags

protected boolean HideEndTags

XmlTags

protected boolean XmlTags

XmlOut

protected boolean XmlOut

xHTML

protected boolean xHTML

XmlPi

protected boolean XmlPi

RawOut

protected boolean RawOut

UpperCaseTags

protected boolean UpperCaseTags

UpperCaseAttrs

protected boolean UpperCaseAttrs

MakeClean

protected boolean MakeClean

LogicalEmphasis

protected boolean LogicalEmphasis

DropFontTags

protected boolean DropFontTags

DropEmptyParas

protected boolean DropEmptyParas

FixComments

protected boolean FixComments

BreakBeforeBR

protected boolean BreakBeforeBR

BurstSlides

protected boolean BurstSlides

NumEntities

protected boolean NumEntities

QuoteMarks

protected boolean QuoteMarks

QuoteNbsp

protected boolean QuoteNbsp

QuoteAmpersand

protected boolean QuoteAmpersand

WrapAttVals

protected boolean WrapAttVals

WrapScriptlets

protected boolean WrapScriptlets

WrapSection

protected boolean WrapSection

WrapAsp

protected boolean WrapAsp

WrapJste

protected boolean WrapJste

WrapPhp

protected boolean WrapPhp

FixBackslash

protected boolean FixBackslash

IndentAttributes

protected boolean IndentAttributes

XmlPIs

protected boolean XmlPIs

XmlSpace

protected boolean XmlSpace

EncloseBodyText

protected boolean EncloseBodyText

EncloseBlockText

protected boolean EncloseBlockText

KeepFileTimes

protected boolean KeepFileTimes

Word2000

protected boolean Word2000

TidyMark

protected boolean TidyMark

Emacs

protected boolean Emacs

LiteralAttribs

protected boolean LiteralAttribs

CompactFormat

protected boolean CompactFormat

FixAlt

protected boolean FixAlt

doReformat

protected boolean doReformat
Reformat mode perform inlineDup, run clean up filters ... etc. to cleanup the document. When set to false, changes to the document are minimized (no inlineDup(), Clean filters ... etc).


fTagTable

private TagTable fTagTable

fAttributeTable

private AttributeTable fAttributeTable

_properties

private transient java.util.Properties _properties
Constructor Detail

Configuration

public Configuration()
Method Detail

parseInt

private static int parseInt(java.lang.String s,
                            java.lang.String option)

parseBool

private static boolean parseBool(java.lang.String s,
                                 java.lang.String option)

parseInvBool

private static boolean parseInvBool(java.lang.String s,
                                    java.lang.String option)

parseName

private static java.lang.String parseName(java.lang.String s,
                                          java.lang.String option)

parseCharEncoding

private static int parseCharEncoding(java.lang.String s,
                                     java.lang.String option)

getTagTable

public TagTable getTagTable()

setTagTable

public void setTagTable(TagTable table)

getAttributeTable

public AttributeTable getAttributeTable()

setAttributeTable

public void setAttributeTable(AttributeTable table)

addProps

public void addProps(java.util.Properties p)

parseFile

public void parseFile(java.lang.String filename)

adjust

public void adjust()

parseDocType

protected java.lang.String parseDocType(java.lang.String s,
                                        java.lang.String option)

parseProps

private void parseProps()

parseIndent

private boolean parseIndent(java.lang.String s,
                            java.lang.String option)

parseInlineTagNames

private void parseInlineTagNames(java.lang.String s,
                                 java.lang.String option)

parseBlockTagNames

private void parseBlockTagNames(java.lang.String s,
                                java.lang.String option)

parseEmptyTagNames

private void parseEmptyTagNames(java.lang.String s,
                                java.lang.String option)

parsePreTagNames

private void parsePreTagNames(java.lang.String s,
                              java.lang.String option)