public class StringScanner extends Object
| Constructor and Description |
|---|
StringScanner() |
public static String format(StringBuilder buf, String fmt, Object o1)
public static String format(StringBuilder buf, String fmt, Object o1, Object o2)
public static String format(StringBuilder buf, String fmt, Object o1, Object o2, Object o3, Object o4)
public static String format(StringBuilder buf, String fmt, Object o1, Object o2, Object o3, Object o4, Object o5)
public static String format(StringBuilder buf, String fmt, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6)
public static String format(StringBuilder buf, String fmt, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Object o7)
public static String format(StringBuilder buf, String fmt, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Object o7, Object o8)
public static String format(StringBuilder buf, String fmt, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Object o7, Object o8, Object o9)
public static String format(StringBuilder buf, String fmt, int argcnt, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Object o7, Object o8, Object o9)
public static String levelString(int level)
Used for formatted print, this will return a string containing 4 spaces for each specified level.
level - The level to fill to.public static Vector splitString(String str, String delimeter)
Split str based on the delimeter and return as an array of Strings.
delimeter - The string representing the delimeters.str - The string to process.public static String fill(String str, int len, boolean left)
Left or right fills the given string with spaces (' ').
left - true when the text should be left justified, otherwiselen - The desired length of the formatted string.str - The string to process.public static String createParamString(String fmt, Object obj1, Object obj2, Object obj3)
public static String createParamString(String fmt, Object obj1, Object obj2, Object obj3, Object obj4)
public static String createParamString(String fmt, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5)
public static String createParamString(String fmt, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6)
public static String createParamString(String fmt, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7)
public static String createParamString(String fmt, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8)
public static String createParamString(String fmt, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9)
public static String getIntStr(int num)
Copyright © 2019. All rights reserved.