@Test public void testIsPdf() throws Exception { String templatePath = "pdfa_test.pdf"; File result = createTestFile(templatePath, new File(temp.getRoot(), "test.pdf")); assertTrue(templatePath, InputUtils.isPdf(result)); }
public static boolean isPdf(File f) throws IOException { return hasMagicNumber(f, PDF_MAGIC_NUMBER); }
InputUtils { public static boolean isPdf(File f) throws IOException { return hasMagicNumber(f, PDF_MAGIC_NUMBER); } }
InputUtils { public static boolean isPdf(File f) throws IOException { return hasMagicNumber(f, PDF_MAGIC_NUMBER); }  }
InputUtils { public static boolean isPdf(File f) throws IOException { return hasMagicNumber(f, PDF_MAGIC_NUMBER); }  static boolean isJp2000(File f); static boolean isJpeg(File f); static boolean isPdf(File f); static boolean isTiff(File f); static boolean isWave(File f); static boolean isMp3(File f); static boolean hasMagicNumber(File f, byte[]... magics); }
InputUtils { public static boolean isPdf(File f) throws IOException { return hasMagicNumber(f, PDF_MAGIC_NUMBER); }  static boolean isJp2000(File f); static boolean isJpeg(File f); static boolean isPdf(File f); static boolean isTiff(File f); static boolean isWave(File f); static boolean isMp3(File f); static boolean hasMagicNumber(File f, byte[]... magics); static final byte[] JP2000_MAGIC_NUMBER; static final byte[] JPEG_MAGIC_NUMBER; static final byte[] PDF_MAGIC_NUMBER; static final byte[] TIFF_BE_MAGIC_NUMBER; static final byte[] TIFF_LE_MAGIC_NUMBER; static final byte[] WAVE_MAGIC_NUMBER; static final byte[] MP3_ID3V1_MAGIC_NUMBER; static final byte[] MP3_ID3V2_MAGIC_NUMBER; }