jp.gr.java_conf.dangan.io
Class LittleEndian
public class 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(InputStream in) - 入力ストリーム in から リトルエンディアンで
4byte値を読み出す。
|
static int | readInt(byte[] ByteArray, int index) - ByteArray の index の位置からリトルエンディアンで
4バイト値を読み出す。
|
static long | readLong(InputStream in) - 入力ストリーム in から リトルエンディアンで
8byte値を読み出す。
|
static long | readLong(byte[] ByteArray, int index) - ByteArray の index の位置からリトルエンディアンで
8バイト値を読み出す。
|
static int | readShort(InputStream in) - 入力ストリーム in から リトルエンディアンで
2byte値を読み出す。
|
static int | readShort(byte[] ByteArray, int index) - ByteArray の index の位置から リトルエンディアンで
2バイト値を読み出す。読み出された 2バイト値は
0x0000〜0xFFFFにマップされる。
|
static void | writeInt(OutputStream out, int value) - 出力ストリーム out に リトルエンディアンで
4バイト値を書き出す。
|
static void | writeInt(byte[] ByteArray, int index, int value) - ByteArray の index の位置にリトルエンディアンで
4byte値を書き出す。
|
static void | writeLong(OutputStream out, long value) - 出力ストリーム out に リトルエンディアンで
8バイト値を書き出す。
|
static void | writeLong(byte[] ByteArray, int index, long value) - ByteArray の index の位置にリトルエンディアンで
8byte値を書き出す。
|
static void | writeShort(OutputStream out, int value) - 出力ストリーム out に リトルエンディアンで
2バイト書き出す。
|
static void | writeShort(byte[] ByteArray, int index, int value) - ByteArray の index の位置にリトルエンディアンで
2byte値を書き出す。
|
readInt
public static final int readInt(InputStream in)
throws IOException
入力ストリーム in から リトルエンディアンで
4byte値を読み出す。
readInt
public static final int readInt(byte[] ByteArray,
int index)
ByteArray の index の位置からリトルエンディアンで
4バイト値を読み出す。
ByteArray
- バイト配列index
- ByteArray内のデータの開始位置
readLong
public static final long readLong(InputStream in)
throws IOException
入力ストリーム in から リトルエンディアンで
8byte値を読み出す。
readLong
public static final long readLong(byte[] ByteArray,
int index)
ByteArray の index の位置からリトルエンディアンで
8バイト値を読み出す。
ByteArray
- バイト配列index
- ByteArray内のデータの開始位置
readShort
public static final int readShort(InputStream in)
throws IOException
入力ストリーム in から リトルエンディアンで
2byte値を読み出す。
readShort
public static final int readShort(byte[] ByteArray,
int index)
ByteArray の index の位置から リトルエンディアンで
2バイト値を読み出す。読み出された 2バイト値は
0x0000〜0xFFFFにマップされる。
ByteArray
- バイト配列index
- ByteArray内のデータの開始位置
writeInt
public static final void writeInt(OutputStream out,
int value)
throws IOException
出力ストリーム out に リトルエンディアンで
4バイト値を書き出す。
out
- 出力ストリームvalue
- 書き出す1バイト値
writeInt
public static final void writeInt(byte[] ByteArray,
int index,
int value)
ByteArray の index の位置にリトルエンディアンで
4byte値を書き出す。
ByteArray
- バイト配列index
- ByteArray内のデータを書きこむ位置value
- 書きこむ 4byte値
writeLong
public static final void writeLong(OutputStream out,
long value)
throws IOException
出力ストリーム out に リトルエンディアンで
8バイト値を書き出す。
out
- 出力ストリームvalue
- 書き出す1バイト値
writeLong
public static final void writeLong(byte[] ByteArray,
int index,
long value)
ByteArray の index の位置にリトルエンディアンで
8byte値を書き出す。
ByteArray
- バイト配列index
- ByteArray内のデータを書きこむ位置value
- 書きこむ 8byte値
writeShort
public static final void writeShort(OutputStream out,
int value)
throws IOException
出力ストリーム out に リトルエンディアンで
2バイト書き出す。
out
- 出力ストリームvalue
- 書き出す2バイト値
writeShort
public static final void writeShort(byte[] ByteArray,
int index,
int value)
ByteArray の index の位置にリトルエンディアンで
2byte値を書き出す。
ByteArray
- バイト配列index
- ByteArray内のデータを書きこむ位置value
- 書きこむ 2byte値
When you found typographical errors or omissions, Please mail to cqw10305@nifty.com
The company name and product name which are used in this document, it is the trademark or registered trademark of each company generally.
Copyright © 2001-2002 Michel Ishizuka. All Rights Reserved.