@Test(expected = TaskIOException.class) public void openDocumentError() throws TaskIOException { new DefaultPdfSourceOpener().open(PdfStreamSource.newInstanceNoPassword( getClass().getClassLoader().getResourceAsStream("pdf/not_a_pdf.pdf"), "my source")); }
@Override public PDDocumentHandler open(PdfURLSource source) throws TaskIOException { return openGeneric(source); }
DefaultPdfSourceOpener implements PdfSourceOpener<PDDocumentHandler> { @Override public PDDocumentHandler open(PdfURLSource source) throws TaskIOException { return openGeneric(source); } }
DefaultPdfSourceOpener implements PdfSourceOpener<PDDocumentHandler> { @Override public PDDocumentHandler open(PdfURLSource source) throws TaskIOException { return openGeneric(source); }  }
DefaultPdfSourceOpener implements PdfSourceOpener<PDDocumentHandler> { @Override public PDDocumentHandler open(PdfURLSource source) throws TaskIOException { return openGeneric(source); }  @Override PDDocumentHandler open(PdfURLSource source); @Override PDDocumentHandler open(PdfFileSource source); @Override PDDocumentHandler open(PdfStreamSource source); }
DefaultPdfSourceOpener implements PdfSourceOpener<PDDocumentHandler> { @Override public PDDocumentHandler open(PdfURLSource source) throws TaskIOException { return openGeneric(source); }  @Override PDDocumentHandler open(PdfURLSource source); @Override PDDocumentHandler open(PdfFileSource source); @Override PDDocumentHandler open(PdfStreamSource source);  }