private void writePropertyData ( ) { try ( PrintStream out = new PrintStream ( openResultFileOuputStream ( resultDirectory , "properties.json" ) ) ) { out . println ( "{" ) ; int count = 0 ; for ( Entry < Integer , PropertyRecord > propertyEntry : this . propertyRecords . entrySet ( ) ) { if ( count > 0 ) { out . println ( "," ) ; } out . print ( "\"" + propertyEntry . getKey ( ) + "\":" ) ; mapper . writeValue ( out , propertyEntry . getValue ( ) ) ; count ++ ; } out . println ( "\n}" ) ; System . out . println ( " Serialized information for " + count + " properties." ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
Writes all data that was collected about properties to a json file .