クラス FileOutputStream

ファイルへの出力ストリーム


コンストラクタの概要
static  FileOutputStream new(string path)
          初期化を行う
 
メソッドの概要
 void close()
          ストリームを閉じる
 int getPointer()
          現在のファイルポインタを取得する
 void seek(int position)
          ファイルポインタを指定した位置に移動する
 void write(int byte)
          指定されたバイト値をストリームに書きこむ
 void write(table<int> array,int startIndex,int length)
          指定された配列の、指定した範囲のバイト値をストリームに書きこむ
 
コンストラクタの詳細

new

public static FileOutputStream new(string path)

初期化を行う

パラメータ:
path - ファイルのパス
戻り値:
メソッドの詳細

close

public void close()

ストリームを閉じる


getPointer

public int getPointer()

現在のファイルポインタを取得する

戻り値:
現在のファイルポインタ

seek

public void seek(int position)

ファイルポインタを指定した位置に移動する

パラメータ:
position - ファイルポインタ

write

public void write(int byte)

指定されたバイト値をストリームに書きこむ

パラメータ:
byte - 書きこむバイト値

write

public void write(table<int> array,
                  int startIndex,
                  int length)

指定された配列の、指定した範囲のバイト値をストリームに書きこむ

パラメータ:
array - 書きこむバイト列が格納された配列
startIndex - 書き込み開始位置
length - 書き込むバイト値の個数