public final void printClusters(PrintWriter out,List<ClusterData> clusterData,int[] matIndexToMsgInternalId) throws AdeException {
  if (m_finalClusters == null) {
    updateClusters(clusterData,matIndexToMsgInternalId);
  }
  for (  Map.Entry<String,Collection<Integer>> entry : m_finalClusters.entrySet()) {
    final String n=entry.getKey();
    final Collection<Integer> c=entry.getValue();
    out.printf("%s\t",n);
    for (    int m : c) {
      out.printf("%d\t",matIndexToMsgInternalId[m]);
    }
    out.println();
  }
}

public final void printClusters ( PrintWriter out , List < ClusterData > clusterData , int [ ] matIndexToMsgInternalId ) throws AdeException { if ( m_finalClusters == null ) { updateClusters ( clusterData , matIndexToMsgInternalId ) ; } for ( Map . Entry < String , Collection < Integer > > entry : m_finalClusters . entrySet ( ) ) { final String n = entry . getKey ( ) ; final Collection < Integer > c = entry . getValue ( ) ; out . printf ( "%s\t" , n ) ; for ( int m : c ) { out . printf ( "%d\t" , matIndexToMsgInternalId [ m ] ) ; } out . println ( ) ; } }
prints out the cluster information .
