/** * Parses a given file that validates with the iText DTD and writes the content to a document. * @param document the document the parser will write to * @param is the InputSource with the content */ public static void parse(DocListener document, InputSource is) { HtmlParser p = new HtmlParser(); p.go(document, is); }
/** * Gets an instance of the <CODE>HtmlWriter</CODE>. * * @param document The <CODE>Document</CODE> that has to be written * @param os The <CODE>OutputStream</CODE> the writer has to write to. * @return a new <CODE>HtmlWriter</CODE> */ public static HtmlWriter getInstance(Document document, OutputStream os) { return new HtmlWriter(document, os); }
/** * Constructs a new SAXiTextHandler that will translate all the events * triggered by the parser to actions on the <CODE>Document</CODE>-object. * * @param document * this is the document on which events must be triggered */ public SAXmyHtmlHandler(DocListener document) { super(document, new HtmlTagMap()); } /**
/** * Writes out a CSS property. * @param prop a CSS property * @param value the value of the CSS property * @throws IOException */ protected void writeCssProperty(String prop, String value) throws IOException { write(new StringBuffer(prop).append(": ").append(value).append("; ").toString()); } }
/** * Parses a given file that validates with the iText DTD and writes the content to a document. * @param document the document the parser will write to * @param file the file with the content */ public static void parse(DocListener document, String file) { HtmlParser p = new HtmlParser(); p.go(document, file); }
/** * Constructs a new SAXiTextHandler that will translate all the events * triggered by the parser to actions on the <CODE>Document</CODE>-object. * * @param document * this is the document on which events must be triggered * @param bf */ public SAXmyHtmlHandler(DocListener document, BaseFont bf) { super(document, new HtmlTagMap(), bf); }
/** * Gets an instance of the <CODE>HtmlWriter</CODE>. * * @param document The <CODE>Document</CODE> that has to be written * @param os The <CODE>OutputStream</CODE> the writer has to write to. * @return a new <CODE>HtmlWriter</CODE> */ public static HtmlWriter getInstance(Document document, OutputStream os) { return new HtmlWriter(document, os); }
/** * Parses a given file that validates with the iText DTD and writes the content to a document. * @param document the document the parser will write to * @param file the file with the content */ public static void parse(DocListener document, String file) { HtmlParser p = new HtmlParser(); p.go(document, file); }
/** * Constructs a new SAXiTextHandler that will translate all the events * triggered by the parser to actions on the <CODE>Document</CODE>-object. * * @param document * this is the document on which events must be triggered */ public SAXmyHtmlHandler(DocListener document) { super(document, new HtmlTagMap()); } /**
/** * Gets an instance of the <CODE>HtmlWriter</CODE>. * * @param document The <CODE>Document</CODE> that has to be written * @param os The <CODE>OutputStream</CODE> the writer has to write to. * @return a new <CODE>HtmlWriter</CODE> */ public static HtmlWriter getInstance(Document document, OutputStream os) { return new HtmlWriter(document, os); }
/** * Parses a given file that validates with the iText DTD and writes the content to a document. * @param document the document the parser will write to * @param file the file with the content */ public static void parse(DocListener document, String file) { HtmlParser p = new HtmlParser(); p.go(document, file); }
/** * Constructs a new SAXiTextHandler that will translate all the events * triggered by the parser to actions on the <CODE>Document</CODE>-object. * * @param document * this is the document on which events must be triggered * @param bf */ public SAXmyHtmlHandler(DocListener document, BaseFont bf) { super(document, new HtmlTagMap(), bf); }
/** * Parses a given file that validates with the iText DTD and writes the content to a document. * @param document the document the parser will write to * @param is the InputSource with the content */ public static void parse(DocListener document, InputSource is) { HtmlParser p = new HtmlParser(); p.go(document, is); }
/** * Constructs a new SAXiTextHandler that will translate all the events * triggered by the parser to actions on the <CODE>Document</CODE>-object. * * @param document * this is the document on which events must be triggered * @param bf */ public SAXmyHtmlHandler(DocListener document, BaseFont bf) { super(document, new HtmlTagMap(), bf); }
/** * Parses a given file that validates with the iText DTD and writes the content to a document. * @param document the document the parser will write to * @param is the InputSource with the content */ public static void parse(DocListener document, InputSource is) { HtmlParser p = new HtmlParser(); p.go(document, is); }
/** * Constructs a new SAXiTextHandler that will translate all the events * triggered by the parser to actions on the <CODE>Document</CODE>-object. * * @param document * this is the document on which events must be triggered */ public SAXmyHtmlHandler(DocListener document) { super(document, new HtmlTagMap()); } /**
/** * Parses a given file that validates with the iText DTD and writes the content to a document. * @param document the document the parser will write to * @param is the InputStream with the content */ public static void parse(DocListener document, InputStream is) { HtmlParser p = new HtmlParser(); p.go(document, new InputSource(is)); }