T
- the target data model typepublic class TsvIoFactory<T> extends ModelIoFactory<T>
ModelIoFactory
for using TSV files.MODEL_INPUT_CLASS_FORMAT, MODEL_OUTPUT_CLASS_FORMAT
Constructor and Description |
---|
TsvIoFactory(Class<T> modelClass)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected RecordEmitter |
createRecordEmitter(OutputStream out)
Creates a new default
RecordEmitter . |
protected RecordParser |
createRecordParser(InputStream in)
Creates a new default
RecordParser . |
createModelInput, createModelInput, createModelObject, createModelOutput, createModelOutput, findModelInputClass, findModelOutputClass, getModelClass
public TsvIoFactory(Class<T> modelClass)
modelClass
- the data model typeIllegalArgumentException
- if the parameter is null
protected RecordParser createRecordParser(InputStream in) throws IOException
ModelIoFactory
RecordParser
.createRecordParser
in class ModelIoFactory<T>
in
- the source inputIOException
- if failed to initialize the parserprotected RecordEmitter createRecordEmitter(OutputStream out) throws IOException
ModelIoFactory
RecordEmitter
.createRecordEmitter
in class ModelIoFactory<T>
out
- the target outputIOException
- if failed to initialize the emitterCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.