/** * @see <a href="https://issues.apache.org/jira/browse/TIKA-210">TIKA-210</a> */ @Override public void characters(char[] ch, int start, int length) throws SAXException { lazyEndHead(useFrameset); super.characters(ch, start, length); }
/** * Starts the given element. Table cells and list items are automatically * indented by emitting a tab character as ignorable whitespace. */ @Override public void startElement( String uri, String local, String name, Attributes attributes) throws SAXException { if (name.equals("frameset")) { lazyEndHead(true); } else if (!AUTO.contains(name)) { if (HEAD.contains(name)) { lazyStartHead(); } else { lazyEndHead(false); } if (XHTML.equals(uri) && INDENT.contains(name)) { ignorableWhitespace(TAB, 0, TAB.length); } super.startElement(uri, local, name, attributes); } }
/** * Ends the XHTML document by writing the following footer and * clearing the namespace mappings: * <pre> * </body> * </html> * </pre> */ @Override public void endDocument() throws SAXException { lazyEndHead(useFrameset); if (useFrameset) { super.endElement(XHTML, "frameset", "frameset"); } else { super.endElement(XHTML, "body", "body"); } super.endElement(XHTML, "html", "html"); endPrefixMapping(""); super.endDocument(); }
/** * @see <a href="https://issues.apache.org/jira/browse/TIKA-210">TIKA-210</a> */ @Override public void characters(char[] ch, int start, int length) throws SAXException { lazyEndHead(useFrameset); super.characters(ch, start, length); }
/** * @see <a href="https://issues.apache.org/jira/browse/TIKA-210">TIKA-210</a> */ @Override public void characters(char[] ch, int start, int length) throws SAXException { lazyEndHead(useFrameset); super.characters(ch, start, length); }
/** * Starts the given element. Table cells and list items are automatically * indented by emitting a tab character as ignorable whitespace. */ @Override public void startElement( String uri, String local, String name, Attributes attributes) throws SAXException { if (name.equals("frameset")) { lazyEndHead(true); } else if (!AUTO.contains(name)) { if (HEAD.contains(name)) { lazyStartHead(); } else { lazyEndHead(false); } if (XHTML.equals(uri) && INDENT.contains(name)) { ignorableWhitespace(TAB, 0, TAB.length); } super.startElement(uri, local, name, attributes); } }
/** * Starts the given element. Table cells and list items are automatically * indented by emitting a tab character as ignorable whitespace. */ @Override public void startElement( String uri, String local, String name, Attributes attributes) throws SAXException { if (name.equals("frameset")) { lazyEndHead(true); } else if (!AUTO.contains(name)) { if (HEAD.contains(name)) { lazyStartHead(); } else { lazyEndHead(false); } if (XHTML.equals(uri) && INDENT.contains(name)) { ignorableWhitespace(TAB, 0, TAB.length); } super.startElement(uri, local, name, attributes); } }
/** * Ends the XHTML document by writing the following footer and * clearing the namespace mappings: * <pre> * </body> * </html> * </pre> */ @Override public void endDocument() throws SAXException { lazyEndHead(useFrameset); if (useFrameset) { super.endElement(XHTML, "frameset", "frameset"); } else { super.endElement(XHTML, "body", "body"); } super.endElement(XHTML, "html", "html"); endPrefixMapping(""); super.endDocument(); }
/** * Ends the XHTML document by writing the following footer and * clearing the namespace mappings: * <pre> * </body> * </html> * </pre> */ @Override public void endDocument() throws SAXException { lazyEndHead(useFrameset); if (useFrameset) { super.endElement(XHTML, "frameset", "frameset"); } else { super.endElement(XHTML, "body", "body"); } super.endElement(XHTML, "html", "html"); endPrefixMapping(""); super.endDocument(); }