|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjp.sourceforge.livez.mail.util.WindowsEUCJP
public final class WindowsEUCJP
Windows 及び 携帯端末用の EUC-JP と Unicode の相互変換機能を提供するクラスです。
| コンストラクタの概要 | |
|---|---|
WindowsEUCJP()
|
|
| メソッドの概要 | |
|---|---|
static String |
decode(byte[] input)
EUC-JP から Unicode へ変換(デコード)します。 |
static String |
decode(byte[] input,
int length)
EUC-JP から Unicode へ変換(デコード)します。 |
static byte[] |
encode(String input)
Unicode から EUC_JP へ変換(エンコード)します。 |
static boolean |
isSJISKana(byte[] bytes)
指定されたバイト列がシフトJISの半角カタカナである可能性があるかどうかを返します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public WindowsEUCJP()
| メソッドの詳細 |
|---|
public static byte[] encode(String input)
input - 変換する文字列
public static String decode(byte[] input)
throws UnsupportedEncodingException
input - EUC コードで表されたバイト配列
UnsupportedEncodingException
public static String decode(byte[] input,
int length)
throws UnsupportedEncodingException
input - EUC コードで表されたバイト配列length - input の処理する桁数
UnsupportedEncodingExceptionpublic static boolean isSJISKana(byte[] bytes)
bytes - バイト列
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||