|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjp.co.ogis_ri.citk.policytool.common.util.StringUtil
public class StringUtil
文字列のユーティリティクラス.
| フィールドの概要 | |
|---|---|
static String |
CHARSET_SHIFT_JIS
Shift_JIS. |
static String |
CHARSET_UTF8
UTF-8. |
static String |
CHARSET_WIN31J
windows-31j. |
| メソッドの概要 | |
|---|---|
static String |
encoding(byte[] b,
String charsetName)
バイト配列を指定されたキャラセットの文字列に変換する. |
static byte[] |
encoding(String s,
String charsetName)
文字列を指定されたキャラセットのバイト配列に変換する. |
static String |
shortString(String s,
int length)
指定の長さを超える文字列の場合、指定の長さで省略形の文字列に変換する. |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
public static final String CHARSET_UTF8
public static final String CHARSET_SHIFT_JIS
public static final String CHARSET_WIN31J
| メソッドの詳細 |
|---|
public static String encoding(byte[] b,
String charsetName)
b - バイト配列.charsetName - キャラセット名.
public static byte[] encoding(String s,
String charsetName)
s - 文字列.charsetName - キャラセット名.
public static String shortString(String s,
int length)
s - 文字列.length - 指定の文字列長.
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||