org.seasar.framework.util
クラス StringUtil

java.lang.Object
  拡張org.seasar.framework.util.StringUtil

public final class StringUtil
extends Object

作成者:
higa

フィールドの概要
static String[] EMPTY_STRINGS
           
 
メソッドの概要
static void appendHex(StringBuffer buf, byte i)
          文字列に、数値を16進数に変換した文字列を追加します。
static void appendHex(StringBuffer buf, int i)
          文字列に、数値を16進数に変換した文字列を追加します。
static String camelize(String s)
           
static String capitalize(String name)
           
static boolean contains(String str, char ch)
           
static boolean contains(String s1, String s2)
           
static String decamelize(String s)
           
static String decapitalize(String name)
           
static boolean endsWithIgnoreCase(String target1, String target2)
           
static boolean equals(String target1, String target2)
           
static boolean equalsIgnoreCase(String target1, String target2)
           
static boolean isBlank(String str)
           
static boolean isEmpty(String text)
           
static boolean isNotBlank(String str)
           
static String ltrim(String text)
           
static String ltrim(String text, String trimText)
           
static String replace(String text, String fromText, String toText)
           
static String rtrim(String text)
           
static String rtrim(String text, String trimText)
           
static String[] split(String str, String delim)
           
static boolean startsWith(String text, String fragment)
           
static boolean startsWithIgnoreCase(String target1, String target2)
           
static String substringFromLast(String str, String separator)
           
static String toHex(byte[] bytes)
           
static String toHex(int i)
           
static String trimPrefix(String text, String prefix)
           
static String trimSuffix(String text, String suffix)
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

EMPTY_STRINGS

public static final String[] EMPTY_STRINGS
メソッドの詳細

isEmpty

public static final boolean isEmpty(String text)

replace

public static final String replace(String text,
                                   String fromText,
                                   String toText)

split

public static String[] split(String str,
                             String delim)

ltrim

public static final String ltrim(String text)

ltrim

public static final String ltrim(String text,
                                 String trimText)

rtrim

public static final String rtrim(String text)

rtrim

public static final String rtrim(String text,
                                 String trimText)

trimSuffix

public static final String trimSuffix(String text,
                                      String suffix)

trimPrefix

public static final String trimPrefix(String text,
                                      String prefix)

decapitalize

public static String decapitalize(String name)

capitalize

public static String capitalize(String name)

startsWith

public static boolean startsWith(String text,
                                 String fragment)

isBlank

public static boolean isBlank(String str)

isNotBlank

public static boolean isNotBlank(String str)

contains

public static boolean contains(String str,
                               char ch)

contains

public static boolean contains(String s1,
                               String s2)

equals

public static boolean equals(String target1,
                             String target2)

equalsIgnoreCase

public static boolean equalsIgnoreCase(String target1,
                                       String target2)

endsWithIgnoreCase

public static boolean endsWithIgnoreCase(String target1,
                                         String target2)

startsWithIgnoreCase

public static boolean startsWithIgnoreCase(String target1,
                                           String target2)

substringFromLast

public static String substringFromLast(String str,
                                       String separator)

toHex

public static String toHex(byte[] bytes)

toHex

public static String toHex(int i)

appendHex

public static void appendHex(StringBuffer buf,
                             byte i)
文字列に、数値を16進数に変換した文字列を追加します。

パラメータ:
buf - 追加先の文字列
i - 数値

appendHex

public static void appendHex(StringBuffer buf,
                             int i)
文字列に、数値を16進数に変換した文字列を追加します。

パラメータ:
buf - 追加先の文字列
i - 数値

camelize

public static String camelize(String s)

decamelize

public static String decamelize(String s)


Copyright © 2004-2007 The Seasar Foundation. All Rights Reserved.