Package org.daisy.dotify.translator.impl
Class DefaultBrailleFinalizer
- java.lang.Object
-
- org.daisy.dotify.translator.impl.DefaultBrailleFinalizer
-
- All Implemented Interfaces:
BrailleFinalizer
public class DefaultBrailleFinalizer extends Object implements BrailleFinalizer
Provides a default braille finalizer which maps spaces to braille space (0x2800) and hyphens to braille character 3-6 (0x2824). For a configurable version of this class seeConfigurableBrailleFinalizer
.
-
-
Constructor Summary
Constructors Constructor Description DefaultBrailleFinalizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
finalizeBraille(String input)
Finalizes braille translation, replacing remaining non braille characters with braille characters.
-
-
-
Method Detail
-
finalizeBraille
public String finalizeBraille(String input)
Description copied from interface:BrailleFinalizer
Finalizes braille translation, replacing remaining non braille characters with braille characters. An implementation can assume that the input has been filtered. The resulting string must have the same length as the input string.- Specified by:
finalizeBraille
in interfaceBrailleFinalizer
- Parameters:
input
- the input string, mostly braille- Returns:
- returns the finalized string
-
-