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, getModelClasspublic TsvIoFactory(Class<T> modelClass)
modelClass - the data model typeIllegalArgumentException - if the parameter is nullprotected RecordParser createRecordParser(InputStream in) throws IOException
ModelIoFactoryRecordParser.createRecordParser in class ModelIoFactory<T>in - the source inputIOException - if failed to initialize the parserprotected RecordEmitter createRecordEmitter(OutputStream out) throws IOException
ModelIoFactoryRecordEmitter.createRecordEmitter in class ModelIoFactory<T>out - the target outputIOException - if failed to initialize the emitterCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.