|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectnet.argius.stu.io.FilePrinter
ファイル「プリンタ」です。 出力先を任意のファイルに設定します。 ファイルは常に書き込みモードでオープンされます。
| コンストラクタの概要 | |
FilePrinter(File file)
指定されたファイルに出力するプリンタを生成します。 |
|
FilePrinter(String file)
指定されたファイルに出力するプリンタを生成します。 |
|
| メソッドの概要 | |
void |
close()
出力先を閉じます。 |
void |
print(String message)
文字列を出力します。 |
void |
println(String message)
文字列を1行出力します。 |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
public FilePrinter(File file)
throws IOException
file - ファイル
IOException - ファイルオープンエラー
public FilePrinter(String file)
throws IOException
file - ファイルパス
IOException - ファイルオープンエラー| メソッドの詳細 |
public void print(String message)
Printer 内の printmessage - メッセージpublic void println(String message)
Printer 内の printlnmessage - メッセージpublic void close()
Printer 内の close
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||