net.wasamon.mjlib.util
クラス DataUtil

java.lang.Object
  上位を拡張 net.wasamon.mjlib.util.DataUtil

public class DataUtil
extends java.lang.Object

作成者:
Takefumi MIYOSHI

コンストラクタの概要
DataUtil()
           
 
メソッドの概要
static int parseInt(java.lang.String v)
           
static byte[] subArray(byte[] d, int offset, int len)
           
static java.lang.String toBigEndianValueString(byte[] data)
           
static byte[] toByteArray(char v)
           
static byte[] toByteArray(int v)
           
static byte[] toByteArray(int v, int len)
           
static byte toByteH(int a)
           
static byte toByteL(char a)
           
static char toChar(byte[] d, int offset, int length)
           
static char toChar(byte h, byte l)
           
static char toCharH(int a)
           
static char toCharL(int a)
           
static int toInteger(byte b)
           
static int toInteger(byte[] d)
           
static int toInteger(byte[] d, int offset, int length)
           
static int toInteger(char a, char b)
           
static int toLSB8(char a)
           
static int toSiginedInteger(char d)
           
static int toUSB8(char a)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

DataUtil

public DataUtil()
メソッドの詳細

toInteger

public static int toInteger(byte[] d)

toInteger

public static int toInteger(byte b)

toInteger

public static int toInteger(byte[] d,
                            int offset,
                            int length)

toChar

public static char toChar(byte h,
                          byte l)

toChar

public static char toChar(byte[] d,
                          int offset,
                          int length)

toByteArray

public static byte[] toByteArray(char v)

toCharL

public static char toCharL(int a)

toCharH

public static char toCharH(int a)

toByteL

public static byte toByteL(char a)

toByteH

public static byte toByteH(int a)

toInteger

public static int toInteger(char a,
                            char b)

toBigEndianValueString

public static java.lang.String toBigEndianValueString(byte[] data)

toByteArray

public static byte[] toByteArray(int v)

toByteArray

public static byte[] toByteArray(int v,
                                 int len)

toLSB8

public static int toLSB8(char a)

toUSB8

public static int toUSB8(char a)

toSiginedInteger

public static int toSiginedInteger(char d)

parseInt

public static int parseInt(java.lang.String v)
                    throws java.lang.NumberFormatException
例外:
java.lang.NumberFormatException

subArray

public static byte[] subArray(byte[] d,
                              int offset,
                              int len)