@Test public void test() { Document doc = Jsoup.parseBodyFragment( "<header>this</header><header></header><p>This is some text</p><footer>other</footer>"); m.manipulate(doc); assertTrue(doc.body().select("header,footer").isEmpty()); }
@Override public void manipulate(Document document) { document.select("header").remove(); document.select("footer").remove(); }
HeaderAndFooterRemover implements ContentManipulator { @Override public void manipulate(Document document) { document.select("header").remove(); document.select("footer").remove(); } }
HeaderAndFooterRemover implements ContentManipulator { @Override public void manipulate(Document document) { document.select("header").remove(); document.select("footer").remove(); }  }
HeaderAndFooterRemover implements ContentManipulator { @Override public void manipulate(Document document) { document.select("header").remove(); document.select("footer").remove(); }  @Override void manipulate(Document document); }
HeaderAndFooterRemover implements ContentManipulator { @Override public void manipulate(Document document) { document.select("header").remove(); document.select("footer").remove(); }  @Override void manipulate(Document document);  }