Class TextHandler.Builder

  • Enclosing class:
    TextHandler

    public static class TextHandler.Builder
    extends Object
    Provides a Builder for TextHandler.
    • Constructor Detail

      • Builder

        public Builder​(File input,
                       File output,
                       TableCatalogService factory)
        Create a new TextParser builder.
        Parameters:
        input - the input
        output - the output
        factory - the table catalog
    • Method Detail

      • title

        public TextHandler.Builder title​(String value)
        Sets the title for publications created using TextHandlers created with this builder.
        Parameters:
        value - the title
        Returns:
        returns this object
      • author

        public TextHandler.Builder author​(String value)
        Sets the author for publications created using TextHandlers created with this builder.
        Parameters:
        value - the author
        Returns:
        returns this object
      • language

        public TextHandler.Builder language​(String value)
        Sets the language for publications created using TextHandlers created with this builder.
        Parameters:
        value - the language
        Returns:
        returns this object
      • identifier

        public TextHandler.Builder identifier​(String value)
        Sets the identifier for publications created using TextHandlers created with this builder.
        Parameters:
        value - the identifier
        Returns:
        returns this object
      • converterId

        public TextHandler.Builder converterId​(String value)
        Sets the converter identifier to be used when creating a TextHandler. See TableCatalog for available values. If none is suppled, the builder will attempt to select one based on file input characteristics.
        Parameters:
        value - the identifier for the converter
        Returns:
        returns this object
      • duplex

        public TextHandler.Builder duplex​(boolean value)
        Sets the duplex property for publications created using TextHandlers created with this builder.
        Parameters:
        value - the duplex value
        Returns:
        returns this object
      • date

        public TextHandler.Builder date​(Date value)
        Sets the date for publications created using TextHandlers created with this builder.
        Parameters:
        value - the date to use
        Returns:
        returns this object