org.apache.wicket.util.diff
Class ToString

java.lang.Object
  extended by org.apache.wicket.util.diff.ToString
Direct Known Subclasses:
Chunk, Delta, Diff, Revision

public class ToString
extends Object

This class delegates handling of the to a StringBuffer based version.

Version:
$Revision: 1.1 $ $Date: 2006/03/12 00:24:21 $
Author:
Juanco Anez

Constructor Summary
ToString()
          Construct.
 
Method Summary
static String arrayToString(Object[] o)
          Converts an array of Object to a string Use the value of the line.separator system property the line separator.
static String arrayToString(Object[] o, String EOL)
          Converts an array of Object to a string using the given line separator.
static String[] stringToArray(String value)
          Breaks a string into an array of strings.
 String toString()
          Default implementation of the toString() method that delegates work to a StringBuffer base version.
 void toString(StringBuffer s)
          Place a string image of the object in a StringBuffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ToString

public ToString()
Construct.

Method Detail

toString

public String toString()
Default implementation of the toString() method that delegates work to a StringBuffer base version.

Overrides:
toString in class Object
Returns:
String

toString

public void toString(StringBuffer s)
Place a string image of the object in a StringBuffer.

Parameters:
s - the string buffer.

stringToArray

public static String[] stringToArray(String value)
Breaks a string into an array of strings. Use the value of the line.separator system property as the linebreak character.

Parameters:
value - the string to convert.
Returns:
String[]

arrayToString

public static String arrayToString(Object[] o)
Converts an array of Object to a string Use the value of the line.separator system property the line separator.

Parameters:
o - the array of objects.
Returns:
String

arrayToString

public static String arrayToString(Object[] o,
                                   String EOL)
Converts an array of Object to a string using the given line separator.

Parameters:
o - the array of objects.
EOL - the string to use as line separator.
Returns:
String


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.