Package org.daisy.braille.pef
Class TextHandler.Builder
java.lang.Object
org.daisy.braille.pef.TextHandler.Builder
- Enclosing class:
- TextHandler
Provides a Builder for TextHandler
- Version:
- 3 sep 2008
- Author:
- Joel HÃ¥kansson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the author for publications created using TextHandlers created with this builder.build()
Builds a TextParser using the settings of this BuilderconverterId
(String value) Sets the converter identifier to be used when creating a TextHandler.Sets the date for publications created using TextHandlers created with this builder.duplex
(boolean value) Sets the duplex property for publications created using TextHandlers created with this builder.identifier
(String value) Sets the identifier for publications created using TextHandlers created with this builder.Sets the language for publications created using TextHandlers created with this builder.Sets the title for publications created using TextHandlers created with this builder.
-
Constructor Details
-
Builder
Create a new TextParser builder- Parameters:
input
-output
-
-
-
Method Details
-
title
Sets the title for publications created using TextHandlers created with this builder.- Parameters:
value
- the title- Returns:
- returns this object
-
author
Sets the author for publications created using TextHandlers created with this builder.- Parameters:
value
- the author- Returns:
- returns this object
-
language
Sets the language for publications created using TextHandlers created with this builder.- Parameters:
value
- the language- Returns:
- returns this object
-
identifier
Sets the identifier for publications created using TextHandlers created with this builder.- Parameters:
value
- the identifier- Returns:
- returns this object
-
converterId
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
Sets the duplex property for publications created using TextHandlers created with this builder.- Parameters:
value
- the duplex value- Returns:
- returns this object
-
date
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
-