autohit.common
Class Formatter

java.lang.Object
  extended byautohit.common.Formatter

public class Formatter
extends java.lang.Object

formatting helpers

Version:
1.0 Version History EPG - New - 1 Jul 03
EPG - Added change to catch newlines as the end of the text - 30Jul03
Author:
Erich P. Gatejen

Field Summary
 int lineLength
           
 int lineLimit
           
 
Constructor Summary
Formatter()
           
 
Method Summary
 void prefixedWriter(java.lang.String initialPrefix, java.lang.String prefix, java.lang.String text, java.io.Writer target)
          Formatting writer that accepts an initial and subsiquent prefixes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lineLength

public int lineLength

lineLimit

public int lineLimit
Constructor Detail

Formatter

public Formatter()
Method Detail

prefixedWriter

public void prefixedWriter(java.lang.String initialPrefix,
                           java.lang.String prefix,
                           java.lang.String text,
                           java.io.Writer target)
                    throws java.lang.Exception
Formatting writer that accepts an initial and subsiquent prefixes.

Parameters:
initialPrefix - prefix for the first line
prefix - prefix for the following lines
text - the text to write
target - the target Writer
Throws:
java.lang.Exception


Test.