public class CompoundBrailleTranslator extends AbstractBrailleTranslator
BrailleTranslator
that dispatches to sub-translators based on text-transform values.AbstractBrailleTranslator.util
BrailleTranslator.FromStyledTextToBraille, BrailleTranslator.LineBreakingFromStyledText, BrailleTranslator.LineIterator
Modifier | Constructor and Description |
---|---|
|
CompoundBrailleTranslator(BrailleTranslator mainTranslator,
Map<String,Supplier<BrailleTranslator>> subTranslators) |
protected |
CompoundBrailleTranslator(CompoundBrailleTranslator from) |
Modifier and Type | Method and Description |
---|---|
CompoundBrailleTranslator |
_withHyphenator(Hyphenator hyphenator)
Return a new
BrailleTranslator that uses the given Hyphenator to perform
hyphenation. |
BrailleTranslator.FromStyledTextToBraille |
fromStyledTextToBraille() |
BrailleTranslator.LineBreakingFromStyledText |
lineBreakingFromStyledText() |
com.google.common.base.MoreObjects.ToStringHelper |
toStringHelper() |
withHyphenator
finalize, getIdentifier, toString
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIdentifier
public CompoundBrailleTranslator(BrailleTranslator mainTranslator, Map<String,Supplier<BrailleTranslator>> subTranslators)
protected CompoundBrailleTranslator(CompoundBrailleTranslator from)
public com.google.common.base.MoreObjects.ToStringHelper toStringHelper()
toStringHelper
in class AbstractTransform
public CompoundBrailleTranslator _withHyphenator(Hyphenator hyphenator)
AbstractBrailleTranslator
BrailleTranslator
that uses the given Hyphenator
to perform
hyphenation.
The returned object should be selectable based on its identifier from the same BrailleTranslatorProvider
that provided this BrailleTranslator
._withHyphenator
in class AbstractBrailleTranslator
UnsupportedOperationException
- if the main translator or one of the sub-translators's
#withHyphenator()
method throws UnsupportedOperationException
public BrailleTranslator.FromStyledTextToBraille fromStyledTextToBraille()
fromStyledTextToBraille
in interface BrailleTranslator
fromStyledTextToBraille
in class AbstractBrailleTranslator
UnsupportedOperationException
- if the main translator or one of the sub-translators's
#withHyphenator()
method throws UnsupportedOperationException
public BrailleTranslator.LineBreakingFromStyledText lineBreakingFromStyledText()
lineBreakingFromStyledText
in interface BrailleTranslator
lineBreakingFromStyledText
in class AbstractBrailleTranslator
UnsupportedOperationException
- if the main translator or one of the sub-translators's
#withHyphenator()
method throws UnsupportedOperationException
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.