org.caida.otter
Class TextTools

java.lang.Object
  |
  +--org.caida.otter.TextTools

public class TextTools
extends java.lang.Object

Added features to manipulate text and strings.


Constructor Summary
TextTools()
           
 
Method Summary
 java.lang.StringBuffer addWhiteSpace(java.lang.StringBuffer a, int position)
          Allows the ability to add white space to a string buffer so one can specify the columns and have them be unified accross stdout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextTools

public TextTools()
Method Detail

addWhiteSpace

public java.lang.StringBuffer addWhiteSpace(java.lang.StringBuffer a,
                                            int position)
                                     throws NeedMoreWhiteSpace
Allows the ability to add white space to a string buffer so one can specify the columns and have them be unified accross stdout.
Parameters:
a - The stringbuffer that will have white space added to it.
position - The position of the next column.
Returns:
The modified stringbuffer.
Throws:
NeedMoreWhiteSpace - Thrown if the next column position is less than the current length of the stringbuffer.