Liferay 6.0.5

com.liferay.portal.kernel.util
Class StringBundler

java.lang.Object
  extended by com.liferay.portal.kernel.util.StringBundler

public class StringBundler
extends Object

See http://issues.liferay.com/browse/LPS-6072.


Field Summary
static int UNSAFE_CREATE_THRESHOLD
           
 
Constructor Summary
StringBundler()
           
StringBundler(int initialCapacity)
           
StringBundler(String s)
           
StringBundler(String[] stringArray)
           
StringBundler(String[] stringArray, int extraSpace)
           
 
Method Summary
 StringBundler append(boolean b)
           
 StringBundler append(char c)
           
 StringBundler append(char[] charArray)
           
 StringBundler append(double d)
           
 StringBundler append(float f)
           
 StringBundler append(int i)
           
 StringBundler append(long l)
           
 StringBundler append(Object obj)
           
 StringBundler append(String s)
           
 StringBundler append(String[] stringArray)
           
 StringBundler append(StringBundler sb)
           
 int capacity()
           
protected  void expandCapacity(int newCapacity)
           
 int index()
           
 int length()
           
protected  String safeCreate(String[] array, int index, int length)
           
 void setIndex(int newIndex)
           
 void setStringAt(String s, int index)
           
 String stringAt(int index)
           
 String toString()
           
protected  String unsafeCreate(String[] array, int index, int length)
           
 void writeTo(Writer writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNSAFE_CREATE_THRESHOLD

public static final int UNSAFE_CREATE_THRESHOLD
Constructor Detail

StringBundler

public StringBundler()

StringBundler

public StringBundler(int initialCapacity)

StringBundler

public StringBundler(String s)

StringBundler

public StringBundler(String[] stringArray)

StringBundler

public StringBundler(String[] stringArray,
                     int extraSpace)
Method Detail

append

public StringBundler append(boolean b)

append

public StringBundler append(char c)

append

public StringBundler append(char[] charArray)

append

public StringBundler append(double d)

append

public StringBundler append(float f)

append

public StringBundler append(int i)

append

public StringBundler append(long l)

append

public StringBundler append(Object obj)

append

public StringBundler append(String s)

append

public StringBundler append(String[] stringArray)

append

public StringBundler append(StringBundler sb)

capacity

public int capacity()

index

public int index()

length

public int length()

setIndex

public void setIndex(int newIndex)

setStringAt

public void setStringAt(String s,
                        int index)

stringAt

public String stringAt(int index)

toString

public String toString()
Overrides:
toString in class Object

writeTo

public void writeTo(Writer writer)
             throws IOException
Throws:
IOException

expandCapacity

protected void expandCapacity(int newCapacity)

safeCreate

protected String safeCreate(String[] array,
                            int index,
                            int length)

unsafeCreate

protected String unsafeCreate(String[] array,
                              int index,
                              int length)

Liferay 6.0.5