@Override
 public void startElement(String uri, String localName, String qName, Attributes atts)
     throws SAXException {
   _bpContentHandler.startElement(uri, localName, qName, atts);
   if (localName.equalsIgnoreCase("script")) {
     LOGGER.warn("we shouldn't get script tags when using Boilerpipe");
   }
 }
 @Override
 public void characters(char[] ch, int start, int length) throws SAXException {
   _bpContentHandler.characters(ch, start, length);
 }
 @Override
 public void endElement(String uri, String localName, String qName) throws SAXException {
   _bpContentHandler.endElement(uri, localName, qName);
 }
  @Override
  public void startDocument() throws SAXException {
    init();

    _bpContentHandler.startDocument();
  }
 @Override
 public void endDocument() throws SAXException {
   _bpContentHandler.endDocument();
 }
 @Override
 public void processingInstruction(String target, String data) throws SAXException {
   _bpContentHandler.processingInstruction(target, data);
 }
 @Override
 public void setDocumentLocator(Locator locator) {
   _bpContentHandler.setDocumentLocator(locator);
 }
 @Override
 public void endPrefixMapping(String prefix) throws SAXException {
   _bpContentHandler.endPrefixMapping(prefix);
 }
 @Override
 public void startPrefixMapping(String prefix, String uri) throws SAXException {
   _bpContentHandler.startPrefixMapping(prefix, uri);
 }
Пример #10
0
 /** getContent returns the boilerpipe extracted text. */
 @Override
 public String getContent() {
   TextDocument textDocument = _bpContentHandler.getTextDocument();
   return textDocument.getText(true, false);
 }
Пример #11
0
 @Override
 public void skippedEntity(String name) throws SAXException {
   _bpContentHandler.skippedEntity(name);
 }
Пример #12
0
 @Override
 public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException {
   _bpContentHandler.ignorableWhitespace(ch, start, length);
 }