Class TextHandler.Builder

  • Enclosing class:
    TextHandler

    public static class TextHandler.Builder
    extends java.lang.Object
    Provides a Builder for TextHandler
    Version:
    3 sep 2008
    Author:
    Joel HÃ¥kansson
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder​(java.io.File input, java.io.File output)
      Create a new TextParser builder
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TextHandler.Builder author​(java.lang.String value)
      Sets the author for publications created using TextHandlers created with this builder.
      TextHandler build()
      Builds a TextParser using the settings of this Builder
      TextHandler.Builder converterId​(java.lang.String value)
      Sets the converter identifier to be used when creating a TextHandler.
      TextHandler.Builder date​(java.util.Date value)
      Sets the date for publications created using TextHandlers created with this builder.
      TextHandler.Builder duplex​(boolean value)
      Sets the duplex property for publications created using TextHandlers created with this builder.
      TextHandler.Builder identifier​(java.lang.String value)
      Sets the identifier for publications created using TextHandlers created with this builder.
      TextHandler.Builder language​(java.lang.String value)
      Sets the language for publications created using TextHandlers created with this builder.
      TextHandler.Builder title​(java.lang.String value)
      Sets the title for publications created using TextHandlers created with this builder.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Builder

        public Builder​(java.io.File input,
                       java.io.File output)
        Create a new TextParser builder
        Parameters:
        input -
        output -
    • Method Detail

      • title

        public TextHandler.Builder title​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.util.Date value)
        Sets the date for publications created using TextHandlers created with this builder.
        Parameters:
        value - the date to use
        Returns:
        returns this object