Class TextHandler.Builder

java.lang.Object
org.daisy.braille.pef.TextHandler.Builder
Enclosing class:
TextHandler

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

    • Builder

      public Builder(File input, File output)
      Create a new TextParser builder
      Parameters:
      input -
      output -
  • Method Details

    • 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
    • build

      Builds a TextParser using the settings of this Builder
      Returns:
      returns a new TextParser
      Throws:
      UnsupportedEncodingException
      IOException
      InputDetectionException