@Test public void decodingTest() throws IOException { File file = new File(SOURCE_FILE); byte[] bytes = Files.readAllBytes(file.toPath()); String expectedResult = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " + "Donec ac malesuada tellus. " + "Quisque a arcu semper, tristique nibh eu, convallis lacus. " + "Donec neque justo, condimentum sed molestie ac, mollis eu nibh. " + "Vivamus pellentesque condimentum fringilla. " + "Nullam euismod ac risus a semper. " + "Etiam hendrerit scelerisque sapien tristique varius."; String decoded = new String(ASCIIHexDecodeFilter.ASCIIHexDecode(bytes)); Assert.assertEquals(expectedResult, decoded); }
public static byte[] ASCIIHexDecode(byte[] in) { return ASCIIHexDecodeInternal(in, new ByteArrayOutputStream()); }
ASCIIHexDecodeFilter extends MemoryLimitsAwareFilter { public static byte[] ASCIIHexDecode(byte[] in) { return ASCIIHexDecodeInternal(in, new ByteArrayOutputStream()); } }
ASCIIHexDecodeFilter extends MemoryLimitsAwareFilter { public static byte[] ASCIIHexDecode(byte[] in) { return ASCIIHexDecodeInternal(in, new ByteArrayOutputStream()); }  }
ASCIIHexDecodeFilter extends MemoryLimitsAwareFilter { public static byte[] ASCIIHexDecode(byte[] in) { return ASCIIHexDecodeInternal(in, new ByteArrayOutputStream()); }  static byte[] ASCIIHexDecode(byte[] in); @Override byte[] decode(byte[] b, PdfName filterName, PdfObject decodeParams, PdfDictionary streamDictionary); }
ASCIIHexDecodeFilter extends MemoryLimitsAwareFilter { public static byte[] ASCIIHexDecode(byte[] in) { return ASCIIHexDecodeInternal(in, new ByteArrayOutputStream()); }  static byte[] ASCIIHexDecode(byte[] in); @Override byte[] decode(byte[] b, PdfName filterName, PdfObject decodeParams, PdfDictionary streamDictionary);  }