protected static class AbstractBrailleTranslator.util.DefaultLineBreaker.FullyHyphenatedAndTranslatedString extends Object implements AbstractBrailleTranslator.util.DefaultLineBreaker.BrailleStream
Constructor and Description |
---|
FullyHyphenatedAndTranslatedString(String string) |
FullyHyphenatedAndTranslatedString(String string,
int from,
int to) |
FullyHyphenatedAndTranslatedString(String string,
int from,
int to,
char hyphenChar) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
hasNext() |
boolean |
hasPrecedingSpace()
Whether the already streamed text, or the preceding segment if we are at the
beginning of the stream, ended with a space.
|
String |
next(int limit,
boolean force,
boolean allowHyphens) |
Character |
peek() |
String |
remainder() |
public FullyHyphenatedAndTranslatedString(String string)
public FullyHyphenatedAndTranslatedString(String string, int from, int to)
public FullyHyphenatedAndTranslatedString(String string, int from, int to, char hyphenChar)
public boolean hasNext()
hasNext
in interface AbstractBrailleTranslator.util.DefaultLineBreaker.BrailleStream
public String next(int limit, boolean force, boolean allowHyphens)
next
in interface AbstractBrailleTranslator.util.DefaultLineBreaker.BrailleStream
limit
- The available space left on the current line. The returned string
does not have to fit in this space, but normally does in case of
"explicit" line breaking. If the returned string is longer, it will
be broken.public Character peek()
peek
in interface AbstractBrailleTranslator.util.DefaultLineBreaker.BrailleStream
public String remainder()
remainder
in interface AbstractBrailleTranslator.util.DefaultLineBreaker.BrailleStream
public boolean hasPrecedingSpace()
AbstractBrailleTranslator.util.DefaultLineBreaker.BrailleStream
AbstractBrailleTranslator.util.DefaultLineBreaker.BrailleStream.next(int, boolean, boolean)
method has been called,
hasPrecedingSpace
may throw a UnsupportedOperationException
.hasPrecedingSpace
in interface AbstractBrailleTranslator.util.DefaultLineBreaker.BrailleStream
public Object clone()
clone
in interface AbstractBrailleTranslator.util.DefaultLineBreaker.BrailleStream
clone
in class Object
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.