Package net.sf.jpluck.xml

Source Code of net.sf.jpluck.xml.TextRecordResult

package net.sf.jpluck.xml;

import javax.xml.transform.sax.SAXResult;

import net.sf.jpluck.jxl.URIRewriter;
import net.sf.jpluck.plucker.Bookmark;
import net.sf.jpluck.plucker.Document;
import net.sf.jpluck.plucker.TextRecord;
import net.sf.jpluck.plucker.parsing.html.HTMLSerializer;

public class TextRecordResult extends SAXResult {
    private HTMLSerializer serializer;

    public TextRecordResult(TextRecord textRecord, URIRewriter uriRewriter, int textColorBrightness, boolean parseTables,
    Document document) {
        serializer = new HTMLSerializer(textRecord, uriRewriter, textColorBrightness, parseTables, document);
        setHandler(serializer);
       
    }

    public String[] getLinkURIs() {
        return serializer.getLinkURIs();
    }

    public String[] getEmbeddedImageURIs() {
        return serializer.getEmbeddedImageURIs();
    }
   
    public String getTitle() {
      return serializer.getTitle();
    }
   
    public Bookmark[] getBookmarks() {
      return serializer.getBookmarks();
    }
}
TOP

Related Classes of net.sf.jpluck.xml.TextRecordResult

TOP
Copyright © 2018 www.massapi.com. 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.