DESY ACOP Beans Home

com.cosylab.util
Class StringBufferUtilities

java.lang.Object
  extended by com.cosylab.util.StringBufferUtilities

public class StringBufferUtilities
extends java.lang.Object

Author:
Miha To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments

Method Summary
static void deleteAll(java.lang.StringBuffer buf, char toDelete)
           
static void deleteAll(java.lang.StringBuffer buf, java.lang.String toDelete)
           
static int indexOf(java.lang.StringBuffer buf, char toFind)
           
static int indexOf(java.lang.StringBuffer buf, char toFind, int startIndex)
           
static void main(java.lang.String[] args)
           
static void prepend(java.lang.StringBuffer buf, char beforeWhat, char toPrepend)
           
static void prepend(java.lang.StringBuffer buf, char beforeWhat, java.lang.String toPrepend)
           
static void prepend(java.lang.StringBuffer buf, java.lang.String beforeWhat, char toPrepend)
           
static void prepend(java.lang.StringBuffer buf, java.lang.String beforeWhat, char toPrepend, int offset)
           
static void prepend(java.lang.StringBuffer buf, java.lang.String beforeWhat, java.lang.String toPrepend)
           
static void prepend(java.lang.StringBuffer buf, java.lang.String beforeWhat, java.lang.String toPrepend, int offset)
           
static void replace(java.lang.StringBuffer buf, char replaceWhat, char replaceTo)
           
static void replace(java.lang.StringBuffer buf, char replaceWhat, java.lang.String replaceTo)
           
static void replace(java.lang.StringBuffer buf, java.lang.String replaceWhat, char replaceTo)
           
static void replace(java.lang.StringBuffer buf, java.lang.String replaceWhat, java.lang.String replaceTo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

replace

public static void replace(java.lang.StringBuffer buf,
                           java.lang.String replaceWhat,
                           java.lang.String replaceTo)

prepend

public static void prepend(java.lang.StringBuffer buf,
                           java.lang.String beforeWhat,
                           java.lang.String toPrepend)

prepend

public static void prepend(java.lang.StringBuffer buf,
                           java.lang.String beforeWhat,
                           java.lang.String toPrepend,
                           int offset)

replace

public static void replace(java.lang.StringBuffer buf,
                           char replaceWhat,
                           char replaceTo)

prepend

public static void prepend(java.lang.StringBuffer buf,
                           char beforeWhat,
                           char toPrepend)

replace

public static void replace(java.lang.StringBuffer buf,
                           char replaceWhat,
                           java.lang.String replaceTo)

prepend

public static void prepend(java.lang.StringBuffer buf,
                           char beforeWhat,
                           java.lang.String toPrepend)

replace

public static void replace(java.lang.StringBuffer buf,
                           java.lang.String replaceWhat,
                           char replaceTo)

prepend

public static void prepend(java.lang.StringBuffer buf,
                           java.lang.String beforeWhat,
                           char toPrepend)

prepend

public static void prepend(java.lang.StringBuffer buf,
                           java.lang.String beforeWhat,
                           char toPrepend,
                           int offset)

indexOf

public static int indexOf(java.lang.StringBuffer buf,
                          char toFind)

indexOf

public static int indexOf(java.lang.StringBuffer buf,
                          char toFind,
                          int startIndex)
Parameters:
buf -
toFind -
startIndex - inclusive
Returns:

deleteAll

public static void deleteAll(java.lang.StringBuffer buf,
                             char toDelete)

deleteAll

public static void deleteAll(java.lang.StringBuffer buf,
                             java.lang.String toDelete)

main

public static void main(java.lang.String[] args)


Copyright © 2010. All Rights Reserved.