public static Metadata getMet(URL url) throws IOException, SAXException, TikaException {
        Metadata met = new Metadata();
        PDFParser parser = new PDFParser();
        parser.parse(url.openStream(), new BodyContentHandler(), met, new ParseContext());
        return met;
    }
Grabs a PDF file from a URL and prints its {@link Metadata}
tika-example/src/main/java/org/apache/tika/example/DisplayMetInstance.java