/** * Truncates the target exporter's output. * @param description target importer * @throws IOException if failed to prepare the importer * @throws IllegalArgumentException if some parameters were {@code null} */ public void truncate(ExporterDescription description) throws IOException { if (description == null) { throw new IllegalArgumentException("description must not be null"); //$NON-NLS-1$ } exporters.truncate(description, context); }
/** * Truncates the target exporter's output. * @param description target importer * @throws IOException if failed to prepare the importer * @throws IllegalArgumentException if some parameters were {@code null} */ public void truncate(ExporterDescription description) throws IOException { if (description == null) { throw new IllegalArgumentException("description must not be null"); //$NON-NLS-1$ } getDriver(description).truncate(description, context); }
private <T extends ExporterDescription> void truncate0( ExporterRetriever<T> preparator, ExporterDescription description, TestContext context) throws IOException { assert preparator != null; assert description != null; T desc = preparator.getDescriptionClass().cast(description); preparator.truncate(desc, context); }