com.isenshi.util
クラス CharUtil

java.lang.Object
  拡張com.isenshi.util.CharUtil

public class CharUtil
extends Object

作成者:
nishioka

コンストラクタの概要
CharUtil()
           
 
メソッドの概要
static String arrayToString(Object[] array)
           
static String charpop(String s, char c)
          Trims the first character from String if it matches with specifid values.
static String chartrim(String s, char c)
          Trims the last character from String if it matches with specifid values.
static int childSize(Object bean, String prop)
           
static int count(String s, char c)
           
static String createQuery(Map params)
           
static String getParentPath(String path)
           
static Object getProperty(Object bean, String prop)
           
static String join(int startIndex, String[] array, String joinstr)
           
static String join(String[] array, String joinstr)
           
static String[] removeArrays(String[] array1, String[] array2)
           
static String removePrefixAndSuffix(String str, String prefix, String suffix)
          If str doesn't contain prefix or suffix , the return value is null.
static String replace(String template, Map context)
           
static String replace(String template, String value)
           
static String replace(String template, String key, String value)
           
static int size(Collection col)
           
static int sizeMap(Map col)
           
static String[] stringToArray(String arrayStr)
           
static byte[] toBytes(Object obj)
           
static InputStream toInputStream(String data)
           
static Object toObject(byte[] bytes)
           
static String toUpperCaseAtFisrtChar(String str)
           
static String urlDecode(String value)
           
static String urlEncode(String value)
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

CharUtil

public CharUtil()
メソッドの詳細

removeArrays

public static String[] removeArrays(String[] array1,
                                    String[] array2)

urlDecode

public static String urlDecode(String value)

urlEncode

public static String urlEncode(String value)

replace

public static String replace(String template,
                             String value)

replace

public static String replace(String template,
                             String key,
                             String value)

replace

public static String replace(String template,
                             Map context)

toUpperCaseAtFisrtChar

public static String toUpperCaseAtFisrtChar(String str)

toBytes

public static byte[] toBytes(Object obj)

toObject

public static Object toObject(byte[] bytes)

childSize

public static int childSize(Object bean,
                            String prop)

size

public static int size(Collection col)

sizeMap

public static int sizeMap(Map col)

getProperty

public static Object getProperty(Object bean,
                                 String prop)

stringToArray

public static String[] stringToArray(String arrayStr)

arrayToString

public static String arrayToString(Object[] array)

chartrim

public static String chartrim(String s,
                              char c)
Trims the last character from String if it matches with specifid values.
examples : chartrim("/some/directory/",'/') returns "/some/directory", chartrim("/some/directory",'/') returns original string.


charpop

public static String charpop(String s,
                             char c)
Trims the first character from String if it matches with specifid values.
examples : charpop("/some/directory/",'/') returns "some/directory", chartrim("some/directory",'/') returns original string.


count

public static int count(String s,
                        char c)

removePrefixAndSuffix

public static String removePrefixAndSuffix(String str,
                                           String prefix,
                                           String suffix)
If str doesn't contain prefix or suffix , the return value is null.

パラメータ:
str -
prefix -
suffix -

toInputStream

public static InputStream toInputStream(String data)

getParentPath

public static final String getParentPath(String path)

join

public static final String join(String[] array,
                                String joinstr)

join

public static final String join(int startIndex,
                                String[] array,
                                String joinstr)

createQuery

public static final String createQuery(Map params)


Copyright © 2005-2006 The Seasar Foundation and the others.. All Rights Reserved.