Package org.daisy.dotify.translator.impl
Class ConfigurableBrailleFinalizer.Builder
- java.lang.Object
-
- org.daisy.dotify.translator.impl.ConfigurableBrailleFinalizer.Builder
-
- Enclosing class:
- ConfigurableBrailleFinalizer
public static class ConfigurableBrailleFinalizer.Builder extends Object
Provides a builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Creates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurableBrailleFinalizer
build()
Builds aConfigurableBrailleFinalizer
based on the current configuration of this builder.ConfigurableBrailleFinalizer.Builder
hyphen(String value)
Sets the character to replace hyphens in the input with.ConfigurableBrailleFinalizer.Builder
space(String value)
Sets the character to replace whitespaces in the input with.
-
-
-
Method Detail
-
space
public ConfigurableBrailleFinalizer.Builder space(String value)
Sets the character to replace whitespaces in the input with.- Parameters:
value
- the whitespace value- Returns:
- the builder
-
hyphen
public ConfigurableBrailleFinalizer.Builder hyphen(String value)
Sets the character to replace hyphens in the input with.- Parameters:
value
- the value for hyphens- Returns:
- the builder
-
build
public ConfigurableBrailleFinalizer build()
Builds aConfigurableBrailleFinalizer
based on the current configuration of this builder.- Returns:
- a new
ConfigurableBrailleFinalizer
instance
-
-