@Dependent
@Named
public class FileItemWriter
extends javax.batch.api.chunk.AbstractItemWriter
ItemWriter
の実装クラス。Constructor and Description |
---|
FileItemWriter(javax.batch.runtime.context.JobContext jobContext,
javax.batch.runtime.context.StepContext stepContext,
StepConfig stepConfig,
java.io.File outputFileBasePath)
コンストラクタ。
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
open(java.io.Serializable checkpoint) |
void |
writeItems(java.util.List<java.lang.Object> items) |
@Inject public FileItemWriter(javax.batch.runtime.context.JobContext jobContext, javax.batch.runtime.context.StepContext stepContext, StepConfig stepConfig, java.io.File outputFileBasePath)
jobContext
- JobContext
stepContext
- StepContext
stepConfig
- ステップの設定outputFileBasePath
- 出力先ディレクトリpublic void open(java.io.Serializable checkpoint) throws java.lang.Exception
open
in interface javax.batch.api.chunk.ItemWriter
open
in class javax.batch.api.chunk.AbstractItemWriter
java.lang.Exception
public void writeItems(java.util.List<java.lang.Object> items) throws java.io.IOException
writeItems
in interface javax.batch.api.chunk.ItemWriter
writeItems
in class javax.batch.api.chunk.AbstractItemWriter
java.io.IOException
public void close() throws java.lang.Exception
close
in interface javax.batch.api.chunk.ItemWriter
close
in class javax.batch.api.chunk.AbstractItemWriter
java.lang.Exception