net.argius.stu.io
クラス PrinterTableWriter

java.lang.Object
  拡張net.argius.stu.io.TableWriter
      拡張net.argius.stu.io.PrinterTableWriter

public final class PrinterTableWriter
extends TableWriter

テーブルイメージを「プリンタ」へ出力するテーブルライタです。


コンストラクタの概要
PrinterTableWriter(Printer printer, int[] sizes)
          「プリンタ」テーブルライタを生成します。
PrinterTableWriter(Printer printer, int[] sizes, char delimiter)
          「プリンタ」テーブルライタを生成します。
 
メソッドの概要
 void close()
          「プリンタ」をクローズします。
 void open()
          「プリンタ」をオープンします。
protected  void writeLine(List columns)
          現在の行を出力します。
 
クラス net.argius.stu.io.TableWriter から継承したメソッド
addColumn, getLineNumber, insertColumn, nextRow
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PrinterTableWriter

public PrinterTableWriter(Printer printer,
                          int[] sizes)
「プリンタ」テーブルライタを生成します。 デリミタには-(ハイフン)が適用されます。

パラメータ:
printer - 「プリンタ」
sizes - カラム出力サイズの配列

PrinterTableWriter

public PrinterTableWriter(Printer printer,
                          int[] sizes,
                          char delimiter)
「プリンタ」テーブルライタを生成します。

パラメータ:
printer - 「プリンタ」
sizes - カラム出力サイズの配列
delimiter - デリミタ(分割に使用する文字)
メソッドの詳細

open

public void open()
          throws IOException
「プリンタ」をオープンします。

定義:
クラス TableWriter 内の open
例外:
IOException - 入出力エラー

close

public void close()
           throws IOException
「プリンタ」をクローズします。

定義:
クラス TableWriter 内の close
例外:
IOException - 入出力エラー

writeLine

protected void writeLine(List columns)
                  throws IOException
現在の行を出力します。

定義:
クラス TableWriter 内の writeLine
パラメータ:
columns - 現在行の列リスト
例外:
IOException - 入出力エラー