LADPrintTopics only prints first topic when outputting to stdout
----------------------------------------------------------------
Key: MAHOUT-717
URL: https://issues.apache.org/jira/browse/MAHOUT-717
Project: Mahout
Issue Type: Bug
Affects Versions: 0.5
Reporter: Mat Kelcey
Priority: Minor
LDAPrintTopics uses a PrintWriter to output topics.
This PrintWriter wraps a File when an output directory is specified and
System.out otherwise.
This PrintWriter is closed and recreated for each topic; which doesn't work for
the System.out case (since it closes System.out)
Fix is to flush the stream and close only in the output directory case.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira