org.mudcraft.bukkit.socials.message
Class WordWrap

java.lang.Object
  extended by org.mudcraft.bukkit.socials.message.WordWrap

public class WordWrap
extends java.lang.Object

Wraps text to the width of the client's chat window.

Author:
Geoffrey Davis

Constructor Summary
WordWrap()
           
 
Method Summary
static java.lang.String[] wrap(java.lang.String input)
          Wraps a string to the width of the client's chat window.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordWrap

public WordWrap()
Method Detail

wrap

public static java.lang.String[] wrap(java.lang.String input)
Wraps a string to the width of the client's chat window. This method honors word boundaries.

Parameters:
input - the String to be wrapped
Returns:
an array of Strings, each representing a line of input no wider than the client's chat window