@Test public void protectedFileWithPasswordContainingSeparator() { PdfFileSource result = new PdfFileSourceAdapter("/tmp/inputFile1.pdf:secret.pdf:password").getPdfFileSource(); assertThat(result.getPassword(), is("secret.pdf:password")); assertThat(result.getSource(), CombinableMatcher.<File> either(is(new File("/tmp/inputFile1.pdf"))).or( is(new File("c:\\tmp\\inputFile1.pdf")))); }
public PdfFileSource getPdfFileSource() { return pdfFileSource; }
PdfFileSourceAdapter { public PdfFileSource getPdfFileSource() { return pdfFileSource; } }
PdfFileSourceAdapter { public PdfFileSource getPdfFileSource() { return pdfFileSource; } PdfFileSourceAdapter(String filePathAndPassword); }
PdfFileSourceAdapter { public PdfFileSource getPdfFileSource() { return pdfFileSource; } PdfFileSourceAdapter(String filePathAndPassword); PdfFileSource getPdfFileSource(); }
PdfFileSourceAdapter { public PdfFileSource getPdfFileSource() { return pdfFileSource; } PdfFileSourceAdapter(String filePathAndPassword); PdfFileSource getPdfFileSource(); static final String PASSWORD_SEPARATOR_CHARACTER; }