@ Override public Metadata createMetadata ( ) { Metadata metadata = new Metadata ( ) ; try { for ( DataSet ds : iimFile . getDataSets ( ) ) { Object value = "" ; try { value = ds . getValue ( ) ; } catch ( Exception ex ) { } DataSetInfo info = ds . getInfo ( ) ; //System.out.println(info.toString() + " " + info.getName() + ": " + value); metadata . add ( info . getName ( ) , new Text ( value . toString ( ) ) ) ; } } catch ( Exception ex ) { /*Nothing to be shown*/ } return metadata ; }
Creates the metadata .