SpotVgtProductReaderPlugIn implements ProductReaderPlugIn { static PropertySet readPhysVolDescriptor(File inputFile) throws IOException { return readKeyValuePairs(inputFile); } SpotVgtProductReaderPlugIn(); @Override DecodeQualification getDecodeQualification(Object input); @Override Class[] getInputTypes(); @Override ProductReader createReaderInstance(); @Override SnapFileFilter getProductFileFilter(); @Override String[] getDefaultFileExtensions(); @Override String getDescription(Locale locale); @Override String[] getFormatNames();  }
@Test public void testPhysVolumeDescriptor() throws IOException { File dir = TestDataDir.get(); File file = new File(dir, "decode_qual_intended/PHYS_VOL.TXT"); PropertySet physVolDescriptor = SpotVgtProductReaderPlugIn.readPhysVolDescriptor(file); assertNotNull(physVolDescriptor); Property[] properties = physVolDescriptor.getProperties(); assertEquals(24, properties.length); assertEquals("1", physVolDescriptor.getValue("PHYS_VOL_NUMBER")); assertEquals("V2KRNS10__20060721E", physVolDescriptor.getValue("PRODUCT_#0001_ID")); assertEquals("_MIR.HDF", physVolDescriptor.getValue("PRODUCT_#0001_PLAN_09")); }