Interface FeatureCSVWriterFactory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface FeatureCSVWriterFactory
To facilitate creation of a FeatureCSVWriter from corresponding FeatureCSVMetadata.
Author:
Owen Feehan
  • Method Details

    • create

      Optional<FeatureCSVWriter> create​(FeatureCSVMetadata metadata) throws org.anchoranalysis.io.output.error.OutputWriteFailedException
      Maybe creates a FeatureCSVWriter corresponding to particular metadata.
      Parameters:
      metadata - the metadata.
      Returns:
      the writer, if created.
      Throws:
      org.anchoranalysis.io.output.error.OutputWriteFailedException - if the CSV file cannot be created successfully.