public void clear(){
  for (  List<Buffer> bufferList : bufferMap.values()) {
    bufferList.clear();
  }
  bufferMap.clear();
  count=0;
}

public void clear ( ) { for ( List < Buffer > bufferList : bufferMap . values ( ) ) { bufferList . clear ( ) ; } bufferMap . clear ( ) ; count = 0 ; }
clears the buffer map .
