Method Summary |
|
public static org.w3c.dom.Document | createEmptyDocument() Creates an empty DOM Document. |
public String | getAltText() alt-text - default text for alt attribute. |
public boolean | getAsciiChars() ascii-chars - convert quotes and dashes to nearest ASCII char. |
public boolean | getBreakBeforeBR() break-before-br - output newline before <br>. |
public boolean | getBurstSlides() split - create slides on each h2 element. |
public int | getCharEncoding() Returns the configured character encoding. |
public Configuration | getConfiguration() |
public String | getDocType() doctype - user specified doctype. |
public boolean | getDropEmptyParas() drop-empty-paras - discard empty p elements. |
public boolean | getDropFontTags() drop-font-tags - discard presentation tags. |
public boolean | getDropProprietaryAttributes() drop-proprietary-attributes - discard proprietary attributes. |
public boolean | getEmacs() gnu-emacs - if true format error output for GNU Emacs. |
public boolean | getEncloseBlockText() enclose-block-text - if true text in blocks is wrapped in <p>'s. |
public boolean | getEncloseText() enclose-text - if true text at body is wrapped in <p>'s. |
public String | getErrfile() Errfile - file name to write errors to. |
public PrintWriter | getErrout() Errout - the error output stream. |
public boolean | getEscapeCdata() escape-cdata -replace CDATA sections with escaped text. |
public boolean | getFixBackslash() fix-backslash - fix URLs by replacing \ with /. |
public boolean | getFixComments() fix-bad-comments - fix comments with adjacent hyphens. |
public boolean | getFixUri() fix-uri - output BODY content only. |
public boolean | getForceOutput() force-output - output document even if errors were found. |
public boolean | getHideComments() hide-comments - hides all (real) comments in output. |
public boolean | getHideEndTags() hide-endtags - suppress optional end tags. |
public boolean | getIndentAttributes() indent-attributes - newline+indent before each attribute. |
public boolean | getIndentCdata() indent-cdata - indent CDATA sections. |
public boolean | getIndentContent() indent - indent content of appropriate tags. |
public String | getInputEncoding() input-encoding the character encoding used for input. |
public String | getInputStreamName() |
public boolean | getJoinClasses() join-classes - join multiple class attributes. |
public boolean | getJoinStyles() join-styles - join multiple style attributes. |
public boolean | getKeepFileTimes() keep-time - if true last modified time is preserved. |
public boolean | getLiteralAttribs() literal-attributes - if true attributes may use newlines. |
public boolean | getLogicalEmphasis() logical-emphasis - replace i by em and b by strong. |
public boolean | getLowerLiterals() lower-literals - folds known attribute values to lower case. |
public boolean | getMakeBare() make-clean - remove Microsoft cruft. |
public boolean | getMakeClean() make-clean - remove presentational clutter. |
public boolean | getNumEntities() numeric-entities - output entities other than the built-in HTML entities in the numeric rather
than the named entity form. |
public boolean | getOnlyErrors() only-errors - if true normal output is suppressed. |
public String | getOutputEncoding() output-encoding the character encoding used for output. |
public int | getParseErrors() ParseErrors - the number of errors that occurred in the most recent parse operation. |
public int | getParseWarnings() ParseWarnings - the number of warnings that occurred in the most recent parse operation. |
public boolean | getPrintBodyOnly() print-body-only - output BODY content only. |
public boolean | getQuiet() quiet - no 'Parsing X', guessed DTD or summary. |
public boolean | getQuoteAmpersand() quote-ampersand - output naked ampersand as &. |
public boolean | getQuoteMarks() quote-marks - output " marks as ". |
public boolean | getQuoteNbsp() quote-nbsp - output non-breaking space as entity. |
public boolean | getRawOut() output-raw - avoid mapping values > 127 to entities. |
public int | getRepeatedAttributes() repeated-attributes - keep first or last duplicate attribute. |
public boolean | getReplaceColor() replace-color - replace hex color attribute values with names. |
public int | getShowErrors() show-errors - number of errors to put out. |
public boolean | getShowWarnings() show-warnings - show warnings? (errors are always shown). |
public String | getSlidestyle() |
public boolean | getSmartIndent() SmartIndent - does text/block level content effect indentation. |
public int | getSpaces() indent-spaces - default indentation. |
public PrintWriter | getStderr() |
public int | getTabsize() tab-size - tab size in chars. |
public boolean | getTidyMark() tidy-mark - add meta element indicating tidied doc. |
public boolean | getTrimEmptyElements() trim-empty-elements - trim empty elements. |
public boolean | getUpperCaseAttrs() uppercase-attributes - output attributes in upper case. |
public boolean | getUpperCaseTags() uppercase-tags - output tags in upper case. |
public boolean | getWord2000() word-2000 - draconian cleaning for Word2000. |
public boolean | getWrapAsp() wrap-asp - wrap within ASP pseudo elements. |
public boolean | getWrapAttVals() wrap-attributes - wrap within attribute values. |
public boolean | getWrapJste() wrap-jste - wrap within JSTE pseudo elements. |
public boolean | getWrapPhp() wrap-php - wrap within PHP pseudo elements. |
public boolean | getWrapScriptlets() wrap-script-literals - wrap within JavaScript string literals. |
public boolean | getWrapSection() wrap-sections - wrap within <![ ... |
public int | getWraplen() wrap - default wrap margin. |
public boolean | getWriteback() writeback - if true then output tidied markup. |
public boolean | getXHTML() output-xhtml - output extensible HTML. |
public boolean | getXmlOut() output-xml - create output as XML. |
public boolean | getXmlPIs() assume-xml-procins This option specifies if Tidy should change the parsing of processing
instructions to require ?> as the terminator rather than >. |
public boolean | getXmlPi() add-xml-pi - add <?xml?> for XML docs. |
public boolean | getXmlSpace() add-xml-space - if set to yes adds xml:space attr as needed. |
public boolean | getXmlTags() input-xml - treat input as XML. |
public static void | main(String[] argv) Command line interface to parser and pretty printer. |
protected int | mainExec(String[] argv) Main method, but returns the return code as an int instead of calling System.exit(code). |
public Node | parse(InputStream in, OutputStream out) Parses InputStream in and returns the root Node. |
public org.w3c.dom.Document | parseDOM(InputStream in, OutputStream out) Parses InputStream in and returns a DOM Document node. |
public void | pprint(org.w3c.dom.Document doc, OutputStream out) Pretty-prints a DOM Document. |
public void | pprint(org.w3c.dom.Node node, OutputStream out) Pretty-prints a DOM Node.
Parameters: node - org.w3c.dom.Node. |
public void | setAltText(String altText) alt-text - default text for alt attribute. |
public void | setAsciiChars(boolean asciiChars) ascii-chars - convert quotes and dashes to nearest ASCII char. |
public void | setBreakBeforeBR(boolean breakBeforeBR) break-before-br - output newline before <br>. |
public void | setBurstSlides(boolean burstSlides) split - create slides on each h2 element. |
public void | setCharEncoding(int charencoding) Sets the character encoding used both for input and for output. |
public void | setConfigurationFromFile(String filename) Sets the configuration from a configuration file. |
public void | setConfigurationFromProps(Properties props) Sets the configuration from a properties object. |
public void | setDocType(String doctype) doctype - user specified doctype. |
public void | setDropEmptyParas(boolean dropEmptyParas) drop-empty-paras - discard empty p elements. |
public void | setDropFontTags(boolean dropFontTags) drop-font-tags - discard presentation tags. |
public void | setDropProprietaryAttributes(boolean dropProprietaryAttributes) drop-proprietary-attributes - discard proprietary attributes. |
public void | setEmacs(boolean emacs) gnu-emacs - if true format error output for GNU Emacs. |
public void | setEncloseBlockText(boolean encloseBlockText) enclose-block-text - if true text in blocks is wrapped in <p>'s. |
public void | setEncloseText(boolean encloseText) enclose-text - if true text at body is wrapped in <p>'s. |
public void | setErrfile(String errfile) Errfile - file name to write errors to. |
public void | setErrout(PrintWriter out) |
public void | setEscapeCdata(boolean escapeCdata) escape-cdata - replace CDATA sections with escaped text. |
public void | setFixBackslash(boolean fixBackslash) fix-backslash - fix URLs by replacing \ with /. |
public void | setFixComments(boolean fixComments) fix-bad-comments - fix comments with adjacent hyphens. |
public void | setFixUri(boolean fixUri) fix-uri - fix uri references applying URI encoding if necessary. |
public void | setForceOutput(boolean forceOutput) force-output - output document even if errors were found. |
public void | setHideComments(boolean hideComments) hide-comments - hides all (real) comments in output. |
public void | setHideEndTags(boolean hideEndTags) hide-endtags - suppress optional end tags. |
public void | setIndentAttributes(boolean indentAttributes) indent-attributes - newline+indent before each attribute. |
public void | setIndentCdata(boolean indentCdata) indent-cdata - indent CDATA sections. |
public void | setIndentContent(boolean indentContent) indent - indent content of appropriate tags. |
public void | setInputEncoding(String encoding) input-encoding the character encoding used for input. |
public void | setInputStreamName(String name) InputStreamName - the name of the input stream (printed in the header information). |
public void | setJoinClasses(boolean joinClasses) join-classes - join multiple class attributes. |
public void | setJoinStyles(boolean joinStyles) join-styles - join multiple style attributes. |
public void | setKeepFileTimes(boolean keepFileTimes) keep-time - if true last modified time is preserved. |
public void | setLiteralAttribs(boolean literalAttribs) literal-attributes - if true attributes may use newlines. |
public void | setLogicalEmphasis(boolean logicalEmphasis) logical-emphasis - replace i by em and b by strong. |
public void | setLowerLiterals(boolean lowerLiterals) lower-literals - folds known attribute values to lower case. |
public void | setMakeBare(boolean makeBare) make-bare - remove Microsoft cruft. |
public void | setMakeClean(boolean makeClean) make-clean - remove presentational clutter. |
public void | setMessageListener(TidyMessageListener listener) Attach a TidyMessageListener which will be notified for messages and errors. |
public void | setNumEntities(boolean numEntities) numeric-entities - output entities other than the built-in HTML entities in the numeric rather
than the named entity form. |
public void | setOnlyErrors(boolean onlyErrors) only-errors - if true normal output is suppressed. |
public void | setOutputEncoding(String encoding) output-encoding the character encoding used for output. |
public void | setPrintBodyOnly(boolean bodyOnly) print-body-only - output BODY content only. |
public void | setQuiet(boolean quiet) quiet - no 'Parsing X', guessed DTD or summary. |
public void | setQuoteAmpersand(boolean quoteAmpersand) quote-ampersand - output naked ampersand as &. |
public void | setQuoteMarks(boolean quoteMarks) quote-marks - output " marks as ". |
public void | setQuoteNbsp(boolean quoteNbsp) quote-nbsp - output non-breaking space as entity. |
public void | setRawOut(boolean rawOut) output-raw - avoid mapping values > 127 to entities. |
public void | setRepeatedAttributes(int repeatedAttributes) repeated-attributes - keep first or last duplicate attribute. |
public void | setReplaceColor(boolean replaceColor) replace-color - replace hex color attribute values with names. |
public void | setShowErrors(int showErrors) show-errors - set the number of errors to put out. |
public void | setShowWarnings(boolean showWarnings) show-warnings - show warnings? (errors are always shown). |
public void | setSlidestyle(String slidestyle) |
public void | setSmartIndent(boolean smartIndent) SmartIndent - does text/block level content effect indentation. |
public void | setSpaces(int spaces) indent-spaces - default indentation. |
public void | setTabsize(int tabsize) tab-size - tab size in chars. |
public void | setTidyMark(boolean tidyMark) tidy-mark - add meta element indicating tidied doc. |
public void | setTrimEmptyElements(boolean trimEmpty) trim-empty-elements - trim empty elements. |
public void | setUpperCaseAttrs(boolean upperCaseAttrs) uppercase-attributes - output attributes in upper case. |
public void | setUpperCaseTags(boolean upperCaseTags) uppercase-tags - output tags in upper case. |
public void | setWord2000(boolean word2000) word-2000 - draconian cleaning for Word2000. |
public void | setWrapAsp(boolean wrapAsp) wrap-asp - wrap within ASP pseudo elements. |
public void | setWrapAttVals(boolean wrapAttVals) wrap-attributes - wrap within attribute values. |
public void | setWrapJste(boolean wrapJste) wrap-jste - wrap within JSTE pseudo elements. |
public void | setWrapPhp(boolean wrapPhp) wrap-php - wrap within PHP pseudo elements. |
public void | setWrapScriptlets(boolean wrapScriptlets) wrap-script-literals - wrap within JavaScript string literals. |
public void | setWrapSection(boolean wrapSection) wrap-sections - wrap within <![ ... |
public void | setWraplen(int wraplen) wrap - default wrap margin. |
public void | setWriteback(boolean writeback) writeback - if true then output tidied markup. |
public void | setXHTML(boolean xhtml) output-xhtml - output extensible HTML. |
public void | setXmlOut(boolean xmlOut) output-xml - create output as XML. |
public void | setXmlPIs(boolean xmlPIs) assume-xml-procins This option specifies if Tidy should change the parsing of processing
instructions to require ?> as the terminator rather than >. |
public void | setXmlPi(boolean xmlPi) add-xml-pi - add <?xml?> for XML docs. |
public void | setXmlSpace(boolean xmlSpace) add-xml-space - if set to yes adds xml:space attr as needed. |
public void | setXmlTags(boolean xmlTags) input-xml - treat input as XML. |