Examples of HDFParser


Examples of org.apache.tika.parser.hdf.HDFParser

    public void testParseGlobalMetadata() throws Exception {
        if(System.getProperty("java.version").startsWith("1.5")) {
            return;
        }
        Parser parser = new HDFParser();
        ContentHandler handler = new BodyContentHandler();
        Metadata metadata = new Metadata();

        /*
         * this is a publicly available HDF5 file from the MLS mission:
         *
         *
         * ftp://acdisc.gsfc.nasa.gov/data/s4pa///Aura_MLS_Level2/ML2O3.002//2009
         * /MLS-Aura_L2GP-O3_v02-23-c01_2009d122.he5
         */
        InputStream stream = HDFParser.class
                .getResourceAsStream("/test-documents/test.he5");
        try {
            parser.parse(stream, handler, metadata);
        } finally {
            stream.close();
        }

        assertNotNull(metadata);
View Full Code Here

Examples of org.apache.tika.parser.hdf.HDFParser

    public void testParseGlobalMetadata() throws Exception {
        if(System.getProperty("java.version").startsWith("1.5")) {
            return;
        }
        Parser parser = new HDFParser();
        ContentHandler handler = new BodyContentHandler();
        Metadata metadata = new Metadata();

        /*
         * this is a publicly available HDF5 file from the MLS mission:
         *
         *
         * ftp://acdisc.gsfc.nasa.gov/data/s4pa///Aura_MLS_Level2/ML2O3.002//2009
         * /MLS-Aura_L2GP-O3_v02-23-c01_2009d122.he5
         */
        InputStream stream = HDFParser.class
                .getResourceAsStream("/test-documents/test.he5");
        try {
            parser.parse(stream, handler, metadata, new ParseContext());
        } finally {
            stream.close();
        }

        assertNotNull(metadata);
View Full Code Here

Examples of org.apache.tika.parser.hdf.HDFParser

    public void testParseGlobalMetadata() throws Exception {
        if(System.getProperty("java.version").startsWith("1.5")) {
            return;
        }
        Parser parser = new HDFParser();
        ContentHandler handler = new BodyContentHandler();
        Metadata metadata = new Metadata();

        /*
         * this is a publicly available HDF5 file from the MLS mission:
         *
         *
         * ftp://acdisc.gsfc.nasa.gov/data/s4pa///Aura_MLS_Level2/ML2O3.002//2009
         * /MLS-Aura_L2GP-O3_v02-23-c01_2009d122.he5
         */
        InputStream stream = HDFParser.class
                .getResourceAsStream("/test-documents/test.he5");
        try {
            parser.parse(stream, handler, metadata, new ParseContext());
        } finally {
            stream.close();
        }

        assertNotNull(metadata);
View Full Code Here

Examples of org.apache.tika.parser.hdf.HDFParser

    public void testHDF4() throws Exception {
       if(System.getProperty("java.version").startsWith("1.5")) {
          return;
      }
      Parser parser = new HDFParser();
      ContentHandler handler = new BodyContentHandler();
      Metadata metadata = new Metadata();

      /*
       * this is a publicly available HDF4 file from the HD4 examples:
       *
       * http://www.hdfgroup.org/training/hdf4_chunking/Chunkit/bin/input54kmdata.hdf
       */
      InputStream stream = HDFParser.class
              .getResourceAsStream("/test-documents/test.hdf");
      try {
          parser.parse(stream, handler, metadata, new ParseContext());
      } finally {
          stream.close();
      }

      assertNotNull(metadata);
View Full Code Here

Examples of org.apache.tika.parser.hdf.HDFParser

    public void testParseGlobalMetadata() throws Exception {
        if(System.getProperty("java.version").startsWith("1.5")) {
            return;
        }
        Parser parser = new HDFParser();
        ContentHandler handler = new BodyContentHandler();
        Metadata metadata = new Metadata();

        /*
         * this is a publicly available HDF5 file from the MLS mission:
         *
         *
         * ftp://acdisc.gsfc.nasa.gov/data/s4pa///Aura_MLS_Level2/ML2O3.002//2009
         * /MLS-Aura_L2GP-O3_v02-23-c01_2009d122.he5
         */
        InputStream stream = HDFParser.class
                .getResourceAsStream("/test-documents/test.he5");
        try {
            parser.parse(stream, handler, metadata);
        } finally {
            stream.close();
        }

        assertNotNull(metadata);
View Full Code Here

Examples of org.apache.tika.parser.hdf.HDFParser

    @Test
    public void testParseGlobalMetadata() throws Exception {
        if(System.getProperty("java.version").startsWith("1.5")) {
            return;
        }
        Parser parser = new HDFParser();
        ContentHandler handler = new BodyContentHandler();
        Metadata metadata = new Metadata();

        /*
         * this is a publicly available HDF5 file from the MLS mission:
         *
         *
         * ftp://acdisc.gsfc.nasa.gov/data/s4pa///Aura_MLS_Level2/ML2O3.002//2009
         * /MLS-Aura_L2GP-O3_v02-23-c01_2009d122.he5
         */
        InputStream stream = HDFParser.class
                .getResourceAsStream("/test-documents/test.he5");
        try {
            parser.parse(stream, handler, metadata, new ParseContext());
        } finally {
            stream.close();
        }

        assertNotNull(metadata);
View Full Code Here

Examples of org.apache.tika.parser.hdf.HDFParser

    @Test
    public void testHDF4() throws Exception {
       if(System.getProperty("java.version").startsWith("1.5")) {
          return;
      }
      Parser parser = new HDFParser();
      ContentHandler handler = new BodyContentHandler();
      Metadata metadata = new Metadata();

      /*
       * this is a publicly available HDF4 file from the HD4 examples:
       *
       * http://www.hdfgroup.org/training/hdf4_chunking/Chunkit/bin/input54kmdata.hdf
       */
      InputStream stream = HDFParser.class
              .getResourceAsStream("/test-documents/test.hdf");
      try {
          parser.parse(stream, handler, metadata, new ParseContext());
      } finally {
          stream.close();
      }

      assertNotNull(metadata);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.