|
||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectfuku.eb4j.util.ByteUtil
public final class ByteUtil
バイト操作ユーティリティクラス。
メソッドの概要 | |
---|---|
static void |
convertContractedSound(byte[] b)
拗音を清音に変換します。 |
static void |
convertDoubleConsonant(byte[] b)
促音を清音に変換します。 |
static void |
convertLongVowel(byte[] b)
長母音記号を母音に変換します。 |
static void |
convertPSound(byte[] b)
半濁音を清音に変換します。 |
static void |
convertSmallVowel(byte[] b)
小さい母音を通常の母音に変換します。 |
static void |
convertVoicedConsonant(byte[] b)
濁音を清音に変換します。 |
static void |
deleteLongVowel(byte[] b)
長母音記号を削除します。 |
static void |
deleteMark(byte[] b)
指定された配列から記号(・‐’−)を削除します。 |
static void |
deleteSpace(byte[] b)
指定された配列から全角スペースを削除します。 |
static void |
deleteSpaceLatin(byte[] b)
指定された配列から空白文字を削除します。 |
static String |
gb2312ToString(byte[] b)
指定された配列をGB 2312文字コードから文字列に変換します。 |
static String |
gb2312ToString(byte[] b,
int offset,
int len)
指定された部分配列をGB 2312文字コードから文字列に変換します。 |
static int |
getBCD2(byte[] b,
int offset)
指定された配列から2バイトをBCDとみなしint型に変換します。 |
static int |
getBCD4(byte[] b,
int offset)
指定された配列から4バイトをBCDとみなしint型に変換します。 |
static int |
getInt2(byte[] b,
int offset)
指定された配列から2バイトをint型に変換します。 |
static int |
getInt3(byte[] b,
int offset)
指定された配列から3バイトをint型に変換します。 |
static int |
getIntLE2(byte[] b,
int offset)
指定された配列から2バイトをリトルエンディアンでint型に変換します。 |
static long |
getLong4(byte[] b,
int offset)
指定された配列から4バイトをlong型に変換します。 |
static long |
getLongLE4(byte[] b,
int offset)
指定された配列から4バイトをリトルエンディアンでlong型に変換します。 |
static void |
hiraganaToKatakana(byte[] b)
指定された配列の平仮名を片仮名に変換します。 |
static String |
jisx0208ToString(byte[] b)
指定された配列をJIS X 0208文字コードから文字列に変換します。 |
static String |
jisx0208ToString(byte[] b,
int offset,
int len)
指定された部分配列をJIS X 0208文字コードから文字列に変換します。 |
static void |
katakanaToHiragana(byte[] b)
指定された配列の片仮名を平仮名に変換します。 |
static void |
lowerToUpper(byte[] b)
指定された配列の全角小文字を全角大文字に変換します。 |
static void |
lowerToUpperLatin(byte[] b)
指定された配列の半角小文字を半角大文字に変換します。 |
static String |
narrowToWide(String str)
文字列中の半角文字を全角文字に変換します。 |
static void |
reverseWord(byte[] b)
指定された配列の文字順序を逆にします。 |
static void |
reverseWordLatin(byte[] b)
指定された配列の文字順序を逆にします。 |
static byte[] |
stringToJISX0208(String str)
指定された文字列をJIS X 0208文字コードに変換します。 |
static void |
upperToLower(byte[] b)
指定された配列の全角大文字を全角小文字に変換します。 |
static void |
upperToLowerLatin(byte[] b)
指定された配列の半角大文字を半角小文字に変換します。 |
static String |
wideToNarrow(String str)
文字列中の全角文字を半角文字に変換します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
メソッドの詳細 |
---|
public static int getInt2(byte[] b, int offset)
b
- バイト配列offset
- 変換開始位置
public static int getInt3(byte[] b, int offset)
b
- バイト配列offset
- 変換開始位置
public static int getIntLE2(byte[] b, int offset)
b
- バイト配列offset
- 変換開始位置
public static int getBCD2(byte[] b, int offset)
b
- バイト配列offset
- 変換開始位置
public static int getBCD4(byte[] b, int offset)
b
- バイト配列offset
- 変換開始位置
public static long getLong4(byte[] b, int offset)
b
- バイト配列offset
- 変換開始位置
public static long getLongLE4(byte[] b, int offset)
b
- バイト配列offset
- 変換開始位置
public static String narrowToWide(String str)
str
- 半角文字を含む文字列
public static String wideToNarrow(String str)
str
- 全角文字を含む文字列
public static String gb2312ToString(byte[] b)
b
- GB 2312文字セットのバイト配列
public static String gb2312ToString(byte[] b, int offset, int len)
b
- GB 2312文字セットのバイト配列offset
- 変換開始位置len
- 変換を行うバイト数
public static String jisx0208ToString(byte[] b)
b
- JIS X 0208文字セットのバイト配列
public static String jisx0208ToString(byte[] b, int offset, int len)
b
- JIS X 0208文字セットのバイト配列offset
- 変換開始位置len
- 変換を行うバイト数
public static byte[] stringToJISX0208(String str)
str
- 符号化する文字列
public static void katakanaToHiragana(byte[] b)
b
- JIS X 0208文字セットのバイト配列public static void hiraganaToKatakana(byte[] b)
b
- JIS X 0208文字セットのバイト配列public static void upperToLowerLatin(byte[] b)
b
- ISO 8859-1文字セットのバイト配列public static void lowerToUpperLatin(byte[] b)
b
- ISO 8859-1文字セットのバイト配列public static void upperToLower(byte[] b)
b
- JIS X 0208文字セットのバイト配列public static void lowerToUpper(byte[] b)
b
- JIS X 0208文字セットのバイト配列public static void convertLongVowel(byte[] b)
b
- JIS X 0208文字セットのバイト配列public static void deleteLongVowel(byte[] b)
b
- JIS X 0208文字セットのバイト配列public static void convertDoubleConsonant(byte[] b)
b
- JIS X 0208文字セットのバイト配列public static void convertContractedSound(byte[] b)
b
- JIS X 0208文字セットのバイト配列public static void convertVoicedConsonant(byte[] b)
b
- JIS X 0208文字セットのバイト配列public static void convertSmallVowel(byte[] b)
b
- JIS X 0208文字セットのバイト配列public static void convertPSound(byte[] b)
b
- JIS X 0208文字セットのバイト配列public static void deleteMark(byte[] b)
b
- JIS X 0208文字セットのバイト配列public static void deleteSpaceLatin(byte[] b)
b
- ISO 8859-1文字セットのバイト配列public static void deleteSpace(byte[] b)
b
- JIS X 0208文字セットのバイト配列public static void reverseWordLatin(byte[] b)
b
- ISO 8859-1文字セットのバイト配列public static void reverseWord(byte[] b)
b
- JIS X 0208文字セットのバイト配列
|
||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |