com.servingxml.util
Class LineFormatter

java.lang.Object
  extended by com.servingxml.util.LineFormatter
All Implemented Interfaces:
Formatter

public class LineFormatter
extends java.lang.Object
implements Formatter

The LineFormatter formats a line of text


Field Summary
 
Fields inherited from interface com.servingxml.util.Formatter
UNFORMATTED
 
Constructor Summary
LineFormatter(int length, Alignment alignment, char padCharacter)
           
LineFormatter(int minLength, int maxLength, Alignment alignment, char padCharacter)
           
 
Method Summary
 java.lang.String format(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineFormatter

public LineFormatter(int length,
                     Alignment alignment,
                     char padCharacter)

LineFormatter

public LineFormatter(int minLength,
                     int maxLength,
                     Alignment alignment,
                     char padCharacter)
Method Detail

format

public java.lang.String format(java.lang.String value)
Specified by:
format in interface Formatter