public class DirectFileInputPreparator extends BaseImporterPreparator<DirectFileInputDescription>
ImporterPreparator
for DirectFileInputDescription
.Constructor and Description |
---|
DirectFileInputPreparator() |
Modifier and Type | Method and Description |
---|---|
<V> ModelOutput<V> |
createOutput(DataModelDefinition<V> definition,
DirectFileInputDescription description,
TestContext context)
Creates a
ModelOutput to prepare the resource which the importer will use. |
void |
truncate(DirectFileInputDescription description,
TestContext context)
Truncates all resources which the importer will use.
|
getDescriptionClass
public void truncate(DirectFileInputDescription description, TestContext context) throws IOException
ImporterPreparator
If target resources do not support truncate operations, this method has no effects.
description
- the descriptioncontext
- the current test contextIOException
- if failed to open the targetpublic <V> ModelOutput<V> createOutput(DataModelDefinition<V> definition, DirectFileInputDescription description, TestContext context) throws IOException
ImporterPreparator
ModelOutput
to prepare the resource which the importer will use.V
- type of modeldefinition
- the data model definitiondescription
- the descriptioncontext
- the current test contextModelOutput
IOException
- if failed to open the targetCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.