com.JRcServer.commons.resource
クラス ConvertResourceParam

java.lang.Object
  上位を拡張 com.JRcServer.commons.resource.ConvertResourceParam

public class ConvertResourceParam
extends java.lang.Object

プリミティブ型の情報を、リソース情報にコンバートする為の処理群.

プリミティブ型の情報を、リソース情報にコンバートする為の処理群です.

導入されたバージョン:
JRcCommons 1.00
バージョン:
1.00,2005/08/11
作成者:
Masahito Suzuki

フィールドの概要
static int LENGTH_BOOLEAN
          データ長 : boolean.
static int LENGTH_BYTE
          データ長 : byte.
static int LENGTH_CHAR
          データ長 : char.
static int LENGTH_INT
          データ長 : int.
static int LENGTH_LONG
          データ長 : long.
static int LENGTH_SHORT
          データ長 : short.
 
メソッドの概要
static void convertBoolean(BinResource out, int offset, boolean value)
          コンバート処理.
static void convertBoolean(BufferedBinResource out, int offset, boolean value)
          コンバート処理.
static boolean convertBoolean(int off, BinResource binary)
          コンバート処理.
static boolean convertBoolean(int off, BufferedBinResource binary)
          コンバート処理.
static void convertByte(BinResource out, int offset, byte value)
          コンバート処理.
static void convertByte(BufferedBinResource out, int offset, byte value)
          コンバート処理.
static byte convertByte(int off, BinResource binary)
          コンバート処理.
static byte convertByte(int off, BufferedBinResource binary)
          コンバート処理.
static void convertChar(BinResource out, int offset, char value)
          コンバート処理.
static void convertChar(BufferedBinResource out, int offset, char value)
          コンバート処理.
static char convertChar(int off, BinResource binary)
          コンバート処理.
static char convertChar(int off, BufferedBinResource binary)
          コンバート処理.
static int convertDecimal(BinResource out, int offset, java.math.BigDecimal value)
          コンバート処理.
static int convertDecimal(BufferedBinResource out, int offset, java.math.BigDecimal value)
          コンバート処理.
static java.math.BigDecimal convertDecimal(int off, int length, BinResource binary)
          コンバート処理.
static java.math.BigDecimal convertDecimal(int off, int length, BufferedBinResource binary)
          コンバート処理.
static int convertDouble(BinResource out, int offset, double value)
          コンバート処理.
static int convertDouble(BufferedBinResource out, int offset, double value)
          コンバート処理.
static double convertDouble(int off, int length, BinResource binary)
          コンバート処理.
static double convertDouble(int off, int length, BufferedBinResource binary)
          コンバート処理.
static int convertFloat(BinResource out, int offset, float value)
          コンバート処理.
static int convertFloat(BufferedBinResource out, int offset, float value)
          コンバート処理.
static float convertFloat(int off, int length, BinResource binary)
          コンバート処理.
static float convertFloat(int off, int length, BufferedBinResource binary)
          コンバート処理.
static java.lang.String convertFloatBinaryByString(int off, BinResource binary)
          小数点バイナリ情報を文字列に変換.
static java.lang.String convertFloatBinaryByString(int off, BufferedBinResource binary)
          小数点バイナリ情報を文字列に変換.
static void convertInt(BinResource out, int offset, int value)
          コンバート処理.
static void convertInt(BufferedBinResource out, int offset, int value)
          コンバート処理.
static int convertInt(int off, BinResource binary)
          コンバート処理.
static int convertInt(int off, BufferedBinResource binary)
          コンバート処理.
static void convertLong(BinResource out, int offset, long value)
          コンバート処理.
static void convertLong(BufferedBinResource out, int offset, long value)
          コンバート処理.
static long convertLong(int off, BinResource binary)
          コンバート処理.
static long convertLong(int off, BufferedBinResource binary)
          コンバート処理.
static void convertShort(BinResource out, int offset, short value)
          コンバート処理.
static void convertShort(BufferedBinResource out, int offset, short value)
          コンバート処理.
static short convertShort(int off, BinResource binary)
          コンバート処理.
static short convertShort(int off, BufferedBinResource binary)
          コンバート処理.
static int convertString(BinResource out, int offset, java.lang.String value, java.lang.String charset)
          コンバート処理.
static int convertString(BufferedBinResource out, int offset, java.lang.String value, java.lang.String charset)
          コンバート処理.
static java.lang.String convertString(int off, int length, BinResource binary, java.lang.String charset)
          コンバート処理.
static java.lang.String convertString(int off, int length, BufferedBinResource binary, java.lang.String charset)
          コンバート処理.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

LENGTH_BOOLEAN

public static final int LENGTH_BOOLEAN
データ長 : boolean.

関連項目:
定数フィールド値

LENGTH_BYTE

public static final int LENGTH_BYTE
データ長 : byte.

関連項目:
定数フィールド値

LENGTH_CHAR

public static final int LENGTH_CHAR
データ長 : char.

関連項目:
定数フィールド値

LENGTH_SHORT

public static final int LENGTH_SHORT
データ長 : short.

関連項目:
定数フィールド値

LENGTH_INT

public static final int LENGTH_INT
データ長 : int.

関連項目:
定数フィールド値

LENGTH_LONG

public static final int LENGTH_LONG
データ長 : long.

関連項目:
定数フィールド値
メソッドの詳細

convertBoolean

public static final void convertBoolean(BinResource out,
                                        int offset,
                                        boolean value)
コンバート処理.

boolean情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.

convertBoolean

public static final void convertBoolean(BufferedBinResource out,
                                        int offset,
                                        boolean value)
コンバート処理.

boolean情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.

convertBoolean

public static final boolean convertBoolean(int off,
                                           BinResource binary)
                                    throws InputException
コンバート処理.

対象のバイナリ情報をboolean変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
boolean 変換された情報が返されます.
例外:
InputException - 入力例外.

convertBoolean

public static final boolean convertBoolean(int off,
                                           BufferedBinResource binary)
                                    throws InputException
コンバート処理.

対象のバイナリ情報をboolean変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
boolean 変換された情報が返されます.
例外:
InputException - 入力例外.

convertByte

public static final void convertByte(BinResource out,
                                     int offset,
                                     byte value)
コンバート処理.

byte情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.

convertByte

public static final void convertByte(BufferedBinResource out,
                                     int offset,
                                     byte value)
コンバート処理.

byte情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.

convertByte

public static final byte convertByte(int off,
                                     BinResource binary)
                              throws InputException
コンバート処理.

対象のバイナリ情報をbyte変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
byte 変換された情報が返されます.
例外:
InputException - 入力例外.

convertByte

public static final byte convertByte(int off,
                                     BufferedBinResource binary)
                              throws InputException
コンバート処理.

対象のバイナリ情報をbyte変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
byte 変換された情報が返されます.
例外:
InputException - 入力例外.

convertChar

public static final void convertChar(BinResource out,
                                     int offset,
                                     char value)
コンバート処理.

char情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.

convertChar

public static final void convertChar(BufferedBinResource out,
                                     int offset,
                                     char value)
コンバート処理.

char情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.

convertChar

public static final char convertChar(int off,
                                     BinResource binary)
                              throws InputException
コンバート処理.

対象のバイナリ情報をchar変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
char 変換された情報が返されます.
例外:
InputException - 入力例外.

convertChar

public static final char convertChar(int off,
                                     BufferedBinResource binary)
                              throws InputException
コンバート処理.

対象のバイナリ情報をchar変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
char 変換された情報が返されます.
例外:
InputException - 入力例外.

convertShort

public static final void convertShort(BinResource out,
                                      int offset,
                                      short value)
コンバート処理.

short情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.

convertShort

public static final void convertShort(BufferedBinResource out,
                                      int offset,
                                      short value)
コンバート処理.

short情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.

convertShort

public static final short convertShort(int off,
                                       BinResource binary)
                                throws InputException
コンバート処理.

対象のバイナリ情報をshort変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
short 変換された情報が返されます.
例外:
InputException - 入力例外.

convertShort

public static final short convertShort(int off,
                                       BufferedBinResource binary)
                                throws InputException
コンバート処理.

対象のバイナリ情報をshort変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
short 変換された情報が返されます.
例外:
InputException - 入力例外.

convertInt

public static final void convertInt(BinResource out,
                                    int offset,
                                    int value)
コンバート処理.

int情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.

convertInt

public static final void convertInt(BufferedBinResource out,
                                    int offset,
                                    int value)
コンバート処理.

int情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.

convertInt

public static final int convertInt(int off,
                                   BinResource binary)
                            throws InputException
コンバート処理.

対象のバイナリ情報をint変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
int 変換された情報が返されます.
例外:
InputException - 入力例外.

convertInt

public static final int convertInt(int off,
                                   BufferedBinResource binary)
                            throws InputException
コンバート処理.

対象のバイナリ情報をint変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
int 変換された情報が返されます.
例外:
InputException - 入力例外.

convertLong

public static final void convertLong(BinResource out,
                                     int offset,
                                     long value)
コンバート処理.

long情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.

convertLong

public static final void convertLong(BufferedBinResource out,
                                     int offset,
                                     long value)
コンバート処理.

long情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.

convertLong

public static final long convertLong(int off,
                                     BinResource binary)
                              throws InputException
コンバート処理.

対象のバイナリ情報をlong変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
long 変換された情報が返されます.
例外:
InputException - 入力例外.

convertLong

public static final long convertLong(int off,
                                     BufferedBinResource binary)
                              throws InputException
コンバート処理.

対象のバイナリ情報をlong変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
long 変換された情報が返されます.
例外:
InputException - 入力例外.

convertFloat

public static final int convertFloat(BinResource out,
                                     int offset,
                                     float value)
コンバート処理.

float情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.
戻り値:
int 変換された情報長が返されます.

convertFloat

public static final int convertFloat(BufferedBinResource out,
                                     int offset,
                                     float value)
コンバート処理.

float情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.
戻り値:
int 変換された情報長が返されます.

convertFloat

public static final float convertFloat(int off,
                                       int length,
                                       BinResource binary)
                                throws InputException
コンバート処理.

対象のバイナリ情報をfloat変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
length - 変換対象バイナリの変換データ長を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
float 変換された情報が返されます.
例外:
InputException - 入力例外.

convertFloat

public static final float convertFloat(int off,
                                       int length,
                                       BufferedBinResource binary)
                                throws InputException
コンバート処理.

対象のバイナリ情報をfloat変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
length - 変換対象バイナリの変換データ長を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
float 変換された情報が返されます.
例外:
InputException - 入力例外.

convertDouble

public static final int convertDouble(BinResource out,
                                      int offset,
                                      double value)
コンバート処理.

double情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.
戻り値:
int 変換された情報長が返されます.

convertDouble

public static final int convertDouble(BufferedBinResource out,
                                      int offset,
                                      double value)
コンバート処理.

double情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.
戻り値:
int 変換された情報長が返されます.

convertDouble

public static final double convertDouble(int off,
                                         int length,
                                         BinResource binary)
                                  throws InputException
コンバート処理.

対象のバイナリ情報をdouble変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
length - 変換対象バイナリの変換データ長を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
double 変換された情報が返されます.
例外:
InputException - 入力例外.

convertDouble

public static final double convertDouble(int off,
                                         int length,
                                         BufferedBinResource binary)
                                  throws InputException
コンバート処理.

対象のバイナリ情報をdouble変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
length - 変換対象バイナリの変換データ長を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
double 変換された情報が返されます.
例外:
InputException - 入力例外.

convertDecimal

public static final int convertDecimal(BinResource out,
                                       int offset,
                                       java.math.BigDecimal value)
コンバート処理.

Decimal情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.
戻り値:
int 変換された情報長が返されます.

convertDecimal

public static final int convertDecimal(BufferedBinResource out,
                                       int offset,
                                       java.math.BigDecimal value)
コンバート処理.

Decimal情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.
戻り値:
int 変換された情報長が返されます.

convertDecimal

public static final java.math.BigDecimal convertDecimal(int off,
                                                        int length,
                                                        BinResource binary)
                                                 throws InputException
コンバート処理.

対象のバイナリ情報をBigDecimal変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
length - 変換対象バイナリの変換データ長を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
BigDecimal 変換された情報が返されます.
例外:
InputException - 入力例外.

convertDecimal

public static final java.math.BigDecimal convertDecimal(int off,
                                                        int length,
                                                        BufferedBinResource binary)
                                                 throws InputException
コンバート処理.

対象のバイナリ情報をBigDecimal変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
length - 変換対象バイナリの変換データ長を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
BigDecimal 変換された情報が返されます.
例外:
InputException - 入力例外.

convertString

public static final int convertString(BinResource out,
                                      int offset,
                                      java.lang.String value,
                                      java.lang.String charset)
コンバート処理.

String情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.
戻り値:
int 変換されたバイナリ長が返されます.

convertString

public static final int convertString(BufferedBinResource out,
                                      int offset,
                                      java.lang.String value,
                                      java.lang.String charset)
コンバート処理.

String情報をバイナリ変換します.

パラメータ:
out - 設定対象のバイナリ情報を設定します.
offset - 設定対象のオフセット位置を設定します.
value - 変換対象の処理を設定します.
戻り値:
int 変換されたバイナリ長が返されます.

convertString

public static final java.lang.String convertString(int off,
                                                   int length,
                                                   BinResource binary,
                                                   java.lang.String charset)
                                            throws InputException
コンバート処理.

対象のバイナリ情報をString変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
length - 変換対象バイナリの変換データ長を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
String 変換された情報が返されます.
例外:
InputException - 入力例外.

convertString

public static final java.lang.String convertString(int off,
                                                   int length,
                                                   BufferedBinResource binary,
                                                   java.lang.String charset)
                                            throws InputException
コンバート処理.

対象のバイナリ情報をString変換します.

パラメータ:
off - 変換対象バイナリのオフセット値を設定します.
length - 変換対象バイナリの変換データ長を設定します.
binary - 変換対象のバイナリ情報を設定します.
戻り値:
String 変換された情報が返されます.
例外:
InputException - 入力例外.

convertFloatBinaryByString

public static final java.lang.String convertFloatBinaryByString(int off,
                                                                BinResource binary)
                                                         throws InputException
小数点バイナリ情報を文字列に変換.

例外:
InputException

convertFloatBinaryByString

public static final java.lang.String convertFloatBinaryByString(int off,
                                                                BufferedBinResource binary)
                                                         throws InputException
小数点バイナリ情報を文字列に変換.

例外:
InputException