public class DumpTool extends Object
コンストラクタと説明 |
---|
DumpTool() |
修飾子とタイプ | メソッドと説明 |
---|---|
String |
dump(byte[] buf)
byte配列を16進ダンプした文字列を返します。
|
String |
dump(byte[] buf,
int offset,
int count)
byte配列の指定された位置のデータを16進ダンプした文字列を返します。
|
String |
dump(File file)
FileからStreamを読み込み、16進ダンプした文字列を返します。
|
String |
dump(InputStream is)
Streamを読み込み、16進ダンプした文字列を返します。
|
String |
dump(URL url)
URLからStreamを読み込み、16進ダンプした文字列を返します。
|
void |
encode(InputStream is,
OutputStream os)
入力streamから読み込んだbyte配列を16進ダンプし、出力streamに書き込む。
|
boolean |
isShowAddress()
アドレス表示フラグを取得します。
|
boolean |
isShowCharacter()
文字表示フラグを取得します。
|
static void |
main(String[] args) |
void |
setShowAddress(boolean var)
アドレス表示フラグを設定します。
|
void |
setShowCharacter(boolean var)
文字表示フラグを設定します。
|
public void encode(InputStream is, OutputStream os) throws Exception
is
- 入力streamos
- 出力streamException
public String dump(byte[] buf, int offset, int count) throws Exception
buf
- ダンプする文字列offset
- ダンプ開始位置count
- ダンプするbyte数Exception
public String dump(byte[] buf) throws Exception
buf
- ダンプする文字列Exception
public String dump(InputStream is) throws Exception
is
- 読み込むStreamException
public String dump(File file) throws Exception
file
- 読み込むファイルException
public String dump(URL url) throws Exception
url
- 読み込むURLException
public void setShowAddress(boolean var)
var
- 設定するデータpublic boolean isShowAddress()
public void setShowCharacter(boolean var)
var
- 設定するデータpublic boolean isShowCharacter()
public static void main(String[] args)
Copyright © 2021 S.D.S Co.,Ltd.. All rights reserved.