net.argius.stu.io
クラス StringPrinter

java.lang.Object
  拡張net.argius.stu.io.StringPrinter
すべての実装インタフェース:
Printer

public final class StringPrinter
extends Object
implements Printer

文字列「プリンタ」です。 出力先を文字列に設定します。 出力結果を文字列として取り出すことができます。


コンストラクタの概要
StringPrinter()
          文字列プリンタを生成します。
 
メソッドの概要
 void close()
          出力先を閉じます。
 void print(String message)
          文字列を出力します。
 void println(String message)
          文字列を1行出力します。
 String toString()
          文字列を取得します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

StringPrinter

public StringPrinter()
文字列プリンタを生成します。

メソッドの詳細

print

public void print(String message)
文字列を出力します。

定義:
インタフェース Printer 内の print
パラメータ:
message - メッセージ

println

public void println(String message)
文字列を1行出力します。

定義:
インタフェース Printer 内の println
パラメータ:
message - メッセージ

close

public void close()
出力先を閉じます。

定義:
インタフェース Printer 内の close

toString

public String toString()
文字列を取得します。

戻り値:
文字列