fuku.eb4j
クラス BinaryData

java.lang.Object
  上位を拡張 fuku.eb4j.BinaryData

public final class BinaryData
extends Object

バイナリデータクラス。

バージョン:
0.3.4
作成者:
Hisaya FUKUMOTO

メソッドの概要
 byte[] getColorGraphic(long pos)
          指定位置のカラー画像データを返します。
 byte[] getMidiSound(long pos1, long pos2)
          指定位置のMIDI音声データを返します。
 byte[] getMonoGraphic(long pos, int width, int height)
          指定位置のモノクロ画像データを返します。
 byte[] getWaveSound(long pos1, long pos2)
          指定位置のWAVE音声データを返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

getMonoGraphic

public byte[] getMonoGraphic(long pos,
                             int width,
                             int height)
                      throws EBException
指定位置のモノクロ画像データを返します。

パラメータ:
pos - データ位置
width - 幅
height - 高さ
戻り値:
モノクロ画像データ(bitmap)のバイト配列
例外:
EBException - ファイル読み込み中にエラーが発生した場合

getColorGraphic

public byte[] getColorGraphic(long pos)
                       throws EBException
指定位置のカラー画像データを返します。

パラメータ:
pos - データ位置
戻り値:
カラー画像データ(JPEG/DIB)のバイト配列
例外:
EBException - ファイル読み込み中にエラーが発生した場合

getWaveSound

public byte[] getWaveSound(long pos1,
                           long pos2)
                    throws EBException
指定位置のWAVE音声データを返します。

パラメータ:
pos1 - データ開始位置
pos2 - データ終了位置
戻り値:
WAVE音声データのバイト配列
例外:
EBException - ファイル読み込み中にエラーが発生した場合

getMidiSound

public byte[] getMidiSound(long pos1,
                           long pos2)
                    throws EBException
指定位置のMIDI音声データを返します。

パラメータ:
pos1 - データ開始位置
pos2 - データ終了位置
戻り値:
MIDI音声データのバイト配列
例外:
EBException - ファイル読み込み中にエラーが発生した場合


Copyright © 2002-2004 Hisaya FUKUMOTO. All rights reserved.