|
LHA Library for Java | ||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectjp.gr.java_conf.dangan.io.LittleEndian
リトルエンディアンで バイト配列や InputStream, OutputStream にアクセスするメソッドを提供するユーティリティクラス。
-- revision history --
$Log: LittleEndian.java,v $
Revision 1.0 2002/07/24 00:00:00 dangan
add to version control
[change]
writeByte(), readByte() を撤去。
[maintenance]
ソース整備
| メソッドの概要 | |
static int |
readInt(byte[] ByteArray,
int index)
ByteArray の index の位置からリトルエンディアンで 4バイト値を読み出す。 |
static int |
readInt(InputStream in)
入力ストリーム in から リトルエンディアンで 4byte値を読み出す。 |
static long |
readLong(byte[] ByteArray,
int index)
ByteArray の index の位置からリトルエンディアンで 8バイト値を読み出す。 |
static long |
readLong(InputStream in)
入力ストリーム in から リトルエンディアンで 8byte値を読み出す。 |
static int |
readShort(byte[] ByteArray,
int index)
ByteArray の index の位置から リトルエンディアンで 2バイト値を読み出す。 |
static int |
readShort(InputStream in)
入力ストリーム in から リトルエンディアンで 2byte値を読み出す。 |
static void |
writeInt(byte[] ByteArray,
int index,
int value)
ByteArray の index の位置にリトルエンディアンで 4byte値を書き出す。 |
static void |
writeInt(OutputStream out,
int value)
出力ストリーム out に リトルエンディアンで 4バイト値を書き出す。 |
static void |
writeLong(byte[] ByteArray,
int index,
long value)
ByteArray の index の位置にリトルエンディアンで 8byte値を書き出す。 |
static void |
writeLong(OutputStream out,
long value)
出力ストリーム out に リトルエンディアンで 8バイト値を書き出す。 |
static void |
writeShort(byte[] ByteArray,
int index,
int value)
ByteArray の index の位置にリトルエンディアンで 2byte値を書き出す。 |
static void |
writeShort(OutputStream out,
int value)
出力ストリーム out に リトルエンディアンで 2バイト書き出す。 |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| メソッドの詳細 |
public static final int readShort(byte[] ByteArray,
int index)
ByteArray - バイト配列index - ByteArray内のデータの開始位置
ArrayIndexOutOfBoundsException - indexから始まるデータが
ByteArrayの範囲内に無い場合。
public static final int readInt(byte[] ByteArray,
int index)
ByteArray - バイト配列index - ByteArray内のデータの開始位置
ArrayIndexOutOfBoundsException - indexから始まるデータが
ByteArrayの範囲内に無い場合。
public static final long readLong(byte[] ByteArray,
int index)
ByteArray - バイト配列index - ByteArray内のデータの開始位置
ArrayIndexOutOfBoundsException - indexから始まるデータが
ByteArrayの範囲内に無い場合。
public static final int readShort(InputStream in)
throws IOException
in - 入力ストリーム
EOFException - 既に End Of Streamに達していたか、
読み込みの途中で End Of Streamに達した。
読み込み途中のデータは消失する。
IOException - 入出力エラーが発生した場合
public static final int readInt(InputStream in)
throws IOException
in - 入力ストリーム
EOFException - 既に End Of Streamに達していたか、
読み込みの途中で End Of Streamに達した。
読み込み途中のデータは消失する。
IOException - 入出力エラーが発生した場合
public static final long readLong(InputStream in)
throws IOException
in - 入力ストリーム
EOFException - 既に End Of Streamに達していたか、
読み込みの途中で End Of Streamに達した。
読み込み途中のデータは消失する。
IOException - 入出力エラーが発生した場合
public static final void writeShort(byte[] ByteArray,
int index,
int value)
ByteArray - バイト配列index - ByteArray内のデータを書きこむ位置value - 書きこむ 2byte値
ArrayIndexOutOfBoundsException - indexから始まるデータが
ByteArrayの範囲内に無い場合。
public static final void writeInt(byte[] ByteArray,
int index,
int value)
ByteArray - バイト配列index - ByteArray内のデータを書きこむ位置value - 書きこむ 4byte値
ArrayIndexOutOfBoundsException - indexから始まるデータが
ByteArrayの範囲内に無い場合。
public static final void writeLong(byte[] ByteArray,
int index,
long value)
ByteArray - バイト配列index - ByteArray内のデータを書きこむ位置value - 書きこむ 8byte値
ArrayIndexOutOfBoundsException - indexから始まるデータが
ByteArrayの範囲内に無い場合。
public static final void writeShort(OutputStream out,
int value)
throws IOException
out - 出力ストリームvalue - 書き出す2バイト値
IOException - 入出力エラーが発生した場合
public static final void writeInt(OutputStream out,
int value)
throws IOException
out - 出力ストリームvalue - 書き出す1バイト値
IOException - 入出力エラーが発生した場合
public static final void writeLong(OutputStream out,
long value)
throws IOException
out - 出力ストリームvalue - 書き出す1バイト値
IOException - 入出力エラーが発生した場合
|
LHA Library for Java | ||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||