jp.sourceforge.livez.mail.util
クラス WindowsJIS

java.lang.Object
  上位を拡張 jp.sourceforge.livez.mail.util.WindowsJIS

public final class WindowsJIS
extends Object

Windows 及び 携帯端末用の JIS (ISO-2022-JP) と Unicode の相互変換機能を提供するクラスです。

作成者:
杉澤 浩二

コンストラクタの概要
WindowsJIS()
           
 
メソッドの概要
static String decode(byte[] input)
          JIS (ISO-2022-JP) から Unicode へ変換(デコード)します。
static String decode(byte[] input, int length)
          JIS (ISO-2022-JP) から Unicode へ変換(デコード)します。
static byte[] encode(String input)
          Unicode から JIS (ISO-2022-JP) へ変換(エンコード)します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

WindowsJIS

public WindowsJIS()
メソッドの詳細

encode

public static byte[] encode(String input)
Unicode から JIS (ISO-2022-JP) へ変換(エンコード)します。

パラメータ:
input - 変換する文字列
戻り値:
JIS コードで表されたバイト配列

decode

public static String decode(byte[] input)
JIS (ISO-2022-JP) から Unicode へ変換(デコード)します。

パラメータ:
input - JIS コードで表されたバイト配列
戻り値:
Unicode へ変換された文字列

decode

public static String decode(byte[] input,
                            int length)
JIS (ISO-2022-JP) から Unicode へ変換(デコード)します。

パラメータ:
input - JIS コードで表されたバイト配列
length - input の処理する桁数
戻り値:
Unicode へ変換された文字列