public void printAVPairs(Map avPairs,int indentLevel){
  Set set=avPairs.keySet();
  Iterator itr=set.iterator();
  Object objAttribute;
  Object objValue;
  while (itr.hasNext()) {
    objAttribute=itr.next();
    objValue=avPairs.get(objAttribute);
    printIndent(indentLevel);
    writer.println(objAttribute.toString() + " = " + objValue.toString());
  }
  writer.flush();
}

public void printAVPairs ( Map avPairs , int indentLevel ) { Set set = avPairs . keySet ( ) ; Iterator itr = set . iterator ( ) ; Object objAttribute ; Object objValue ; while ( itr . hasNext ( ) ) { objAttribute = itr . next ( ) ; objValue = avPairs . get ( objAttribute ) ; printIndent ( indentLevel ) ; writer . println ( objAttribute . toString ( ) + " = " + objValue . toString ( ) ) ; } writer . flush ( ) ; }
prints av pairs with the specified indent level . actual indentation will be ( indentlevel * indent_width ) . this method calls the tostring method of the objects which are in the map .
