<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Text Output Manager</title><link>https://sourceforge.net/p/rockbillycommon/wiki/Text%2520Output%2520Manager/</link><description>Recent changes to Text Output Manager</description><atom:link href="https://sourceforge.net/p/rockbillycommon/wiki/Text%20Output%20Manager/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 24 May 2013 06:49:29 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/rockbillycommon/wiki/Text%20Output%20Manager/feed" rel="self" type="application/rss+xml"/><item><title>Text Output Manager modified by William A. Hood</title><link>https://sourceforge.net/p/rockbillycommon/wiki/Text%2520Output%2520Manager/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="text-output-manager"&gt;Text Output Manager&lt;/h1&gt;
&lt;p&gt;This class can be used to simplify most use cases for writing output to text files.  No file will be created (or "clobbered") until and unless output is actually written.  This can be useful to prevent empty files from being created.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TextOutputManager(String)&lt;/strong&gt; - This constructor creates a TextOutputManager for the fully qualified file path supplied.  No file will be created until output is written.  If the file already exists, it will be "clobbered" at the time a new one would be created.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TextOutputManager(String, Boolean)&lt;/strong&gt; - Creates a TextOutputManagerfor the fully qualified file path supplied.  No file will be created until output is written.  If the boolean parameter is set to true, any existing file will be appended to.  If set to false, an existing file will be "clobbered" at the time a new one would be created.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TextOutputManager()&lt;/strong&gt; - The "default constructor" for TextOutputManager.  This constructor does not set anything up.  Call it only if you know what you're doing.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TextOutputManager(PrintWriter)&lt;/strong&gt; - This constructor creates a TextOutputManager pointed at the supplied PrinWriter object.  Calling this bypasses the normal functionality of not creating a file until it is written.  This is the appropriate constructor to use if you wish to create a TextOutputManager that uses an existing stream such as Standard Output or Standard Error.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;println(String)&lt;/strong&gt; - Writes out the supplied string parameter, followed by a line separator.  Please note that the line separator will be "Windows style" ("\r\n") as this is universally recognized by all supported operating systems.  If this is the first call to println() any declared file will be created.  The file will not be created if this is never called.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;flush()&lt;/strong&gt; - Flushes all waiting output to this TextOutputManager.  This should be used after any message is written that MUST be seen.  Java does not normally write to an output stream immediately.  If a crash or other interruption occurs between the time output is requested and the time it's actually written the output may be lost.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;close()&lt;/strong&gt; - Cleanly flushes, closes, and destroys this TextOutputManager.  It will be unusable after this method has been called.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">William A. Hood</dc:creator><pubDate>Fri, 24 May 2013 06:49:29 -0000</pubDate><guid>https://sourceforge.net759bda1207a2d91d4d824fc8ad4ad3b5d002b87c</guid></item></channel></rss>