Package com.gengoai.hermes.format
Class CsvFormat.Provider
- java.lang.Object
-
- com.gengoai.hermes.format.CsvFormat.Provider
-
- All Implemented Interfaces:
DocFormatProvider
- Enclosing class:
- CsvFormat
@MetaInfServices public static class CsvFormat.Provider extends Object implements DocFormatProvider
The type Provider.
-
-
Constructor Summary
Constructors Constructor Description Provider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocFormat
create(@NonNull DocFormatParameters parameters)
Creates an instance of the providedDocFormat
with the given set ofDocFormatParameters
DocFormatParameters
getDefaultFormatParameters()
String
getName()
boolean
isWriteable()
-
-
-
Method Detail
-
create
public DocFormat create(@NonNull @NonNull DocFormatParameters parameters)
Description copied from interface:DocFormatProvider
Creates an instance of the providedDocFormat
with the given set ofDocFormatParameters
- Specified by:
create
in interfaceDocFormatProvider
- Parameters:
parameters
- the format parameters- Returns:
- the doc format
-
getDefaultFormatParameters
public DocFormatParameters getDefaultFormatParameters()
- Specified by:
getDefaultFormatParameters
in interfaceDocFormatProvider
- Returns:
- the default DocFormatParameters
-
getName
public String getName()
- Specified by:
getName
in interfaceDocFormatProvider
- Returns:
- the format name used to identify it when constructing document collections.
-
isWriteable
public boolean isWriteable()
- Specified by:
isWriteable
in interfaceDocFormatProvider
- Returns:
- True if this format supports writing, False if not.
-
-