Package org.apache.wicket.util.diff
Class ToString
- java.lang.Object
-
- org.apache.wicket.util.diff.ToString
-
public class ToString extends java.lang.Object
This class delegates handling of the to a StringBuilder based version.- Version:
- $Revision: 1.1 $ $Date: 2006/03/12 00:24:21 $
- Author:
- Juanco Anez
-
-
Constructor Summary
Constructors Constructor Description ToString()
Construct.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
arrayToString(java.lang.Object[] o)
Converts an array ofObject
to a string Use the value of theline.separator
system property the line separator.static java.lang.String
arrayToString(java.lang.Object[] o, java.lang.String EOL)
Converts an array ofObject
to a string using the given line separator.static java.lang.String[]
stringToArray(java.lang.String value)
Breaks a string into an array of strings.java.lang.String
toString()
Default implementation of thetoString()
method that delegates work to aStringBuffer
base version.void
toString(java.lang.StringBuilder s)
Place a string image of the object in a StringBuffer.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
Default implementation of thetoString()
method that delegates work to aStringBuffer
base version.- Overrides:
toString
in classjava.lang.Object
- Returns:
- String
-
toString
public void toString(java.lang.StringBuilder s)
Place a string image of the object in a StringBuffer.- Parameters:
s
- the string buffer.
-
stringToArray
public static java.lang.String[] stringToArray(java.lang.String value)
Breaks a string into an array of strings. Use the value of theline.separator
system property as the linebreak character.- Parameters:
value
- the string to convert.- Returns:
- String[]
-
arrayToString
public static java.lang.String arrayToString(java.lang.Object[] o)
Converts an array ofObject
to a string Use the value of theline.separator
system property the line separator.- Parameters:
o
- the array of objects.- Returns:
- String
-
arrayToString
public static java.lang.String arrayToString(java.lang.Object[] o, java.lang.String EOL)
Converts an array ofObject
to a string using the given line separator.- Parameters:
o
- the array of objects.EOL
- the string to use as line separator.- Returns:
- String
-
-