Interface BrailleConverter

All Known Implementing Classes:
AdvancedBrailleConverter, EmbosserBrailleConverter

public interface BrailleConverter
Provides an interface for converting from text to braille and vice verca.
Author:
Joel HÃ¥kansson
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the preferred charset for this braille format when reading/writing as text from/to file
    boolean
    Returns true if 8-dot braille is supported, false otherwise
    Transcodes the given text string as braille.
    toText(String braille)
    Transcodes the given braille into text.
  • Method Details

    • toBraille

      String toBraille(String text)
      Transcodes the given text string as braille. This may be a one-to-one mapping or a many-to-one depending on the table implementation.
      Parameters:
      text -
      Returns:
      returns a Unicode string of braille
    • toText

      String toText(String braille)
      Transcodes the given braille into text. In most cases this will reverse the effect of toBraille(String text), i.e. text.equals(toText(toBraille(text))), however an implementation cannot rely on it. Values must be between 0x2800 and 0x28FF.
      Parameters:
      braille -
      Returns:
      returns a text string
    • getPreferredCharset

      Charset getPreferredCharset()
      Gets the preferred charset for this braille format when reading/writing as text from/to file
      Returns:
      returns the preferred charset
    • supportsEightDot

      boolean supportsEightDot()
      Returns true if 8-dot braille is supported, false otherwise
      Returns:
      returns true if 8-dot braille is supported, false otherwise