org.bbreak.excella.core.exporter.book
クラス TextFileExporter

java.lang.Object
  上位を拡張 org.bbreak.excella.core.exporter.book.TextFileExporter
すべての実装されたインタフェース:
BookExporter

public class TextFileExporter
extends Object
implements BookExporter

解析結果(データ)をシート単位でファイルに分割して出力する処理クラス ディレクトリ指定とベースファイルパス指定が可能 両方を指定した場合は双方の設定でファイルが出力される。 ディレクトリ(exportDir)を指定した場合・・・指定ディレクトリに"シート名.txt"でファイルを出力 ディレクトリ(baseFilePath)を指定した場合・・・baseFilePath + "シート名.txt"でファイルを出力

導入されたバージョン:
1.0

コンストラクタの概要
TextFileExporter()
           
 
メソッドの概要
 void export(Workbook book, BookData bookdata)
          出力処理の実行
 String getBaseFilePath()
          出力先のベースとなるファイルパスを返します。
 String getDirectoryPath()
          出力先のディレクトリパスを返します。
 void setBaseFilePath(String baseFilePath)
          出力先のベースとなるファイルパスを設定します。
 void setDirectoryPath(String directoryPath)
          出力先のディレクトリパスを設定します。
 void setup()
          初期化処理
 void tearDown()
          終了処理
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

TextFileExporter

public TextFileExporter()
メソッドの詳細

setup

public void setup()
初期化処理

定義:
インタフェース BookExporter 内の setup

export

public void export(Workbook book,
                   BookData bookdata)
            throws ExportException
出力処理の実行

定義:
インタフェース BookExporter 内の export
パラメータ:
book - ワークブック
bookdata - ブックデータ
例外:
ExportException - ファイルは存在するが、普通のファイルではなくディレクトリである場合、 ファイルは存在せず作成もできない場合、またはなんらかの理由で開くことができない場合

tearDown

public void tearDown()
終了処理

定義:
インタフェース BookExporter 内の tearDown

getDirectoryPath

public String getDirectoryPath()
出力先のディレクトリパスを返します。

戻り値:
出力先のディレクトリパス

setDirectoryPath

public void setDirectoryPath(String directoryPath)
出力先のディレクトリパスを設定します。

パラメータ:
directoryPath - 出力先のディレクトリパス

getBaseFilePath

public String getBaseFilePath()
出力先のベースとなるファイルパスを返します。

戻り値:
出力先のベースとなるファイルパス

setBaseFilePath

public void setBaseFilePath(String baseFilePath)
出力先のベースとなるファイルパスを設定します。

パラメータ:
baseFilePath - 出力先のベースとなるファイルパス