org.apache.maven.announcement
Class Formatter

java.lang.Object
  extended by org.apache.maven.announcement.Formatter

public final class Formatter
extends Object

Format text by wrapping it if it goes beyond some column position.

Version:
$Id: Formatter.java 529166 2007-04-16 08:31:26Z ltheussl $
Author:
Vincent Massol

Constructor Summary
Formatter()
           
 
Method Summary
 List format(String text, int column)
          Format text by wrapping it if it goes beyond the passed column value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Formatter

public Formatter()
Method Detail

format

public List format(String text,
                   int column)
Format text by wrapping it if it goes beyond the passed column value.

Parameters:
text - the text to format
column - the max column position
Returns:
the wrapped text


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.