Package com.quiotix.html.parser.HtmlDocument

Examples of com.quiotix.html.parser.HtmlDocument.Attribute


        // or should we always default it unless it has been specified?
        // docStatus = that.docStatus;
        docStatus = DEFAULT_DOC_STATUS;
        headingIncrement = that.headingIncrement;

        Attribute demote = getAttribute(t, "demoteTo");
        if (demote != null) try {
            headingIncrement += Integer.parseInt(deQuote(demote.value)) - 1;
        } catch (NumberFormatException nfe) {
        }
    }
View Full Code Here


        // status division, restart it.
        if (!inDocumentDivision) startDocumentDivision();
    }

    public void visitAnchor(HtmlDocument.Tag t) {
        Attribute name = getAttribute(t, "NAME");
        if (name != null) {
            URL anchorUrl = resolveHash(name);
            String anchorName = getAnchorName(anchorUrl);
            if (anchorName != null) {
                setAttribute(name, anchorName);
View Full Code Here

    public void visitSpan(HtmlDocument.Tag t) {
        CrossReferencer.getCrossReference(t, docID + "_");
    }

    public void visitImg(HtmlDocument.Tag t) {
        Attribute src = getAttribute(t, "SRC");
        if (src != null) try {

            URL imageURL = resolveURL(src);
            if (imageURL == null) return;
View Full Code Here

        setAttribute(src, newSrc);

    }
    public void visitMeta(HtmlDocument.Tag t) {
        if (DEFAULT_DOC_STATUS == STATUSES_DISABLED) return;
        Attribute a = getAttribute(t, "NAME");
        if (a == null) return;
        if ("Generator".equalsIgnoreCase(deQuote(a.value))) {
            a = getAttribute(t, "content");
            if (a != null && a.value.indexOf("Microsoft") != -1)
                printComments = false;
View Full Code Here

TOP

Related Classes of com.quiotix.html.parser.HtmlDocument.Attribute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.