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();
}
}