⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tidy.java

📁 windows 代码
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
        configuration.XmlOut = XmlOut;
    }

    public boolean getXmlOut()
    {
        return configuration.XmlOut;
    }

    /**
     * XHTML - output extensible HTML
     * @see org.w3c.tidy.Configuration#xHTML
     */

    public void setXHTML(boolean xHTML)
    {
        configuration.xHTML = xHTML;
    }

    public boolean getXHTML()
    {
        return configuration.xHTML;
    }

    /**
     * RawOut - avoid mapping values > 127 to entities
     * @see org.w3c.tidy.Configuration#RawOut
     */

    public void setRawOut(boolean RawOut)
    {
        configuration.RawOut = RawOut;
    }

    public boolean getRawOut()
    {
        return configuration.RawOut;
    }

    /**
     * UpperCaseTags - output tags in upper not lower case
     * @see org.w3c.tidy.Configuration#UpperCaseTags
     */

    public void setUpperCaseTags(boolean UpperCaseTags)
    {
        configuration.UpperCaseTags = UpperCaseTags;
    }

    public boolean getUpperCaseTags()
    {
        return configuration.UpperCaseTags;
    }

    /**
     * UpperCaseAttrs - output attributes in upper not lower case
     * @see org.w3c.tidy.Configuration#UpperCaseAttrs
     */

    public void setUpperCaseAttrs(boolean UpperCaseAttrs)
    {
        configuration.UpperCaseAttrs = UpperCaseAttrs;
    }

    public boolean getUpperCaseAttrs()
    {
        return configuration.UpperCaseAttrs;
    }

    /**
     * MakeClean - remove presentational clutter
     * @see org.w3c.tidy.Configuration#MakeClean
     */

    public void setMakeClean(boolean MakeClean)
    {
        configuration.MakeClean = MakeClean;
    }

    public boolean getMakeClean()
    {
        return configuration.MakeClean;
    }

    /**
     * BreakBeforeBR - o/p newline before <br> or not?
     * @see org.w3c.tidy.Configuration#BreakBeforeBR
     */

    public void setBreakBeforeBR(boolean BreakBeforeBR)
    {
        configuration.BreakBeforeBR = BreakBeforeBR;
    }

    public boolean getBreakBeforeBR()
    {
        return configuration.BreakBeforeBR;
    }

    /**
     * BurstSlides - create slides on each h2 element
     * NOTE: this property is ignored when parsing from an InputStream.
     * @see org.w3c.tidy.Configuration#BurstSlides
     */

    public void setBurstSlides(boolean BurstSlides)
    {
        configuration.BurstSlides = BurstSlides;
    }

    public boolean getBurstSlides()
    {
        return configuration.BurstSlides;
    }

    /**
     * NumEntities - use numeric entities
     * @see org.w3c.tidy.Configuration#NumEntities
     */

    public void setNumEntities(boolean NumEntities)
    {
        configuration.NumEntities = NumEntities;
    }

    public boolean getNumEntities()
    {
        return configuration.NumEntities;
    }

    /**
     * QuoteMarks - output " marks as "
     * @see org.w3c.tidy.Configuration#QuoteMarks
     */

    public void setQuoteMarks(boolean QuoteMarks)
    {
        configuration.QuoteMarks = QuoteMarks;
    }

    public boolean getQuoteMarks()
    {
        return configuration.QuoteMarks;
    }

    /**
     * QuoteNbsp - output non-breaking space as entity
     * @see org.w3c.tidy.Configuration#QuoteNbsp
     */

    public void setQuoteNbsp(boolean QuoteNbsp)
    {
        configuration.QuoteNbsp = QuoteNbsp;
    }

    public boolean getQuoteNbsp()
    {
        return configuration.QuoteNbsp;
    }

    /**
     * QuoteAmpersand - output naked ampersand as &
     * @see org.w3c.tidy.Configuration#QuoteAmpersand
     */

    public void setQuoteAmpersand(boolean QuoteAmpersand)
    {
        configuration.QuoteAmpersand = QuoteAmpersand;
    }

    public boolean getQuoteAmpersand()
    {
        return configuration.QuoteAmpersand;
    }

    /**
     * WrapAttVals - wrap within attribute values
     * @see org.w3c.tidy.Configuration#WrapAttVals
     */

    public void setWrapAttVals(boolean WrapAttVals)
    {
        configuration.WrapAttVals = WrapAttVals;
    }

    public boolean getWrapAttVals()
    {
        return configuration.WrapAttVals;
    }

    /**
     * WrapScriptlets - wrap within JavaScript string literals
     * @see org.w3c.tidy.Configuration#WrapScriptlets
     */

    public void setWrapScriptlets(boolean WrapScriptlets)
    {
        configuration.WrapScriptlets = WrapScriptlets;
    }

    public boolean getWrapScriptlets()
    {
        return configuration.WrapScriptlets;
    }

    /**
     * WrapSection - wrap within <![ ... ]> section tags
     * @see org.w3c.tidy.Configuration#WrapSection
     */

    public void setWrapSection(boolean WrapSection)
    {
        configuration.WrapSection = WrapSection;
    }

    public boolean getWrapSection()
    {
        return configuration.WrapSection;
    }

    /**
     * AltText - default text for alt attribute
     * @see org.w3c.tidy.Configuration#altText
     */

    public void setAltText(String altText)
    {
        configuration.altText = altText;
    }

    public String getAltText()
    {
        return configuration.altText;
    }

    /**
     * Slidestyle - style sheet for slides
     * @see org.w3c.tidy.Configuration#slidestyle
     */

    public void setSlidestyle(String slidestyle)
    {
        configuration.slidestyle = slidestyle;
    }

    public String getSlidestyle()
    {
        return configuration.slidestyle;
    }

    /**
     * XmlPi - add <?xml?> for XML docs
     * @see org.w3c.tidy.Configuration#XmlPi
     */

    public void setXmlPi(boolean XmlPi)
    {
        configuration.XmlPi = XmlPi;
    }

    public boolean getXmlPi()
    {
        return configuration.XmlPi;
    }

    /**
     * DropFontTags - discard presentation tags
     * @see org.w3c.tidy.Configuration#DropFontTags
     */

    public void setDropFontTags(boolean DropFontTags)
    {
        configuration.DropFontTags = DropFontTags;
    }

    public boolean getDropFontTags()
    {
        return configuration.DropFontTags;
    }

    /**
     * DropEmptyParas - discard empty p elements
     * @see org.w3c.tidy.Configuration#DropEmptyParas
     */

    public void setDropEmptyParas(boolean DropEmptyParas)
    {
        configuration.DropEmptyParas = DropEmptyParas;
    }

    public boolean getDropEmptyParas()
    {
        return configuration.DropEmptyParas;
    }

    /**
     * FixComments - fix comments with adjacent hyphens
     * @see org.w3c.tidy.Configuration#FixComments
     */

    public void setFixComments(boolean FixComments)
    {
        configuration.FixComments = FixComments;
    }

    public boolean getFixComments()
    {
        return configuration.FixComments;
    }

    /**
     * WrapAsp - wrap within ASP pseudo elements
     * @see org.w3c.tidy.Configuration#WrapAsp
     */

    public void setWrapAsp(boolean WrapAsp)
    {
        configuration.WrapAsp = WrapAsp;
    }

    public boolean getWrapAsp()
    {
        return configuration.WrapAsp;
    }

    /**
     * WrapJste - wrap within JSTE pseudo elements
     * @see org.w3c.tidy.Configuration#WrapJste
     */

    public void setWrapJste(boolean WrapJste)
    {
        configuration.WrapJste = WrapJste;
    }

    public boolean getWrapJste()
    {
        return configuration.WrapJste;
    }

    /**
     * WrapPhp - wrap within PHP pseudo elements
     * @see org.w3c.tidy.Configuration#WrapPhp
     */

    public void setWrapPhp(boolean WrapPhp)
    {
        configuration.WrapPhp = WrapPhp;
    }

    public boolean getWrapPhp()
    {
        return configuration.WrapPhp;
    }

    /**
     * FixBackslash - fix URLs by replacing \ with /
     * @see org.w3c.tidy.Configuration#FixBackslash
     */

    public void setFixBackslash(boolean FixBackslash)
    {
        configuration.FixBackslash = FixBackslash;
    }

    public boolean getFixBackslash()
    {
        return configuration.FixBackslash;
    }

    /**
     * IndentAttributes - newline+indent before each attribute
     * @see org.w3c.tidy.Configuration#IndentAttributes
     */

    public void setIndentAttributes(boolean IndentAttributes)
    {
        configuration.IndentAttributes = IndentAttributes;
    }

    public boolean getIndentAttributes()
    {
        return configuration.IndentAttributes;
    }

    /**
     * DocType - user specified doctype
     * omit | auto | strict | loose | <i>fpi</i>
     * where the <i>fpi</i> is a string similar to
     *    &quot;-//ACME//DTD HTML 3.14159//EN&quot;
     * Note: for <i>fpi</i> include the double-quotes in the string.
     * @see org.w3c.tidy.Configuration#docTypeStr
     * @see org.w3c.tidy.Configuration#docTypeMode
     */

    public void setDocType(String doctype)
    {
        if (doctype != null)
            configuration.docTypeStr = configuration.parseDocType(doctype);
    }

    public String getDocType()
    {
        String result = null;
        switch (configuration.docTypeMode) {
        case Configuration.DOCTYPE_OMIT:
            result = "omit";
            break;
        case Configuration.DOCTYPE_AUTO:
            result = "auto";
            break;
        case Configuration.DOCTYPE_STRICT:
            result = "strict";
            break;
        case Configuration.DOCTYPE_LOOSE:
            result = "loose";
            break;
        case Configuration.DOCTYPE_USER:
            result = configuration.docTypeStr;
            break;
        }
        return result;
    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -