java.text
Class TextBoundaryData

java.lang.Object
  extended byjava.text.TextBoundaryData
Direct Known Subclasses:
CharacterBreakData, LineBreakData, SentenceBreakData, WordBreakData

abstract class TextBoundaryData
extends Object

This class wraps up the data tables needed for SimpleTextBoundary. It is subclassed for each type of text boundary.


Field Summary
protected static char ARABIC_DECIMAL_SEPARATOR
           
protected static char ARABIC_PERCENT_SIGN
           
protected static char ASCII_AMPERSAND
           
protected static char ASCII_APOSTROPHE
           
protected static char ASCII_CARRIAGE_RETURN
           
protected static char ASCII_CENT_SIGN
           
protected static char ASCII_COLON
           
protected static char ASCII_COMMA
           
protected static char ASCII_DOLLAR_SIGN
           
protected static char ASCII_END_OF_TEXT
           
protected static char ASCII_EXCLAMATION_MARK
           
protected static char ASCII_FORM_FEED
           
protected static char ASCII_FULL_STOP
           
protected static char ASCII_HORIZONTAL_TABULATION
           
protected static char ASCII_LINEFEED
           
protected static char ASCII_NONBREAKING_SPACE
           
protected static char ASCII_NUMBER_SIGN
           
protected static char ASCII_PERCENT
           
protected static char ASCII_POUND_SIGN
           
protected static char ASCII_QUESTION_MARK
           
protected static char ASCII_QUOTATION_MARK
           
protected static char ASCII_SEMICOLON
           
protected static char ASCII_SPACE
           
protected static char ASCII_VERTICAL_TABULATION
           
protected static char ASCII_YEN_SIGN
           
private  WordBreakTable backwardStateTable
           
protected static char CJK_COMPATIBILITY_F900
           
protected static char CJK_COMPATIBILITY_FA2D
           
protected static char COMBINING_KATAKANA_HIRAGANA_VOICED_SOUND_MARK
           
protected static char DEGREE_CELSIUS
           
protected static char DEGREE_FAHRENHEIT
           
protected static char DOUBLE_PRIME
           
protected static char END_OF_STRING
           
protected static char FIGURE_SPACE
           
private  WordBreakTable forwardStateTable
           
protected static char FULLWIDTH_COMMA
           
protected static char FULLWIDTH_EXCLAMATION_MARK
           
protected static char FULLWIDTH_FULL_STOP
           
protected static char FULLWIDTH_QUESTION_MARK
           
protected static char HANGUL_CHOSEONG_HIGH
           
protected static char HANGUL_CHOSEONG_LOW
           
protected static char HANGUL_JONGSEONG_HIGH
           
protected static char HANGUL_JONGSEONG_LOW
           
protected static char HANGUL_JUNGSEONG_HIGH
           
protected static char HANGUL_JUNGSEONG_LOW
           
protected static char HANGUL_SYL_HIGH
           
protected static char HANGUL_SYL_LOW
           
protected static char HIRAGANA_ITERATION_MARK
           
protected static char HIRAGANA_LETTER_A
           
protected static char HIRAGANA_LETTER_DI
           
protected static char HIRAGANA_LETTER_E
           
protected static char HIRAGANA_LETTER_I
           
protected static char HIRAGANA_LETTER_MO
           
protected static char HIRAGANA_LETTER_O
           
protected static char HIRAGANA_LETTER_RO
           
protected static char HIRAGANA_LETTER_SMALL_A
           
protected static char HIRAGANA_LETTER_SMALL_E
           
protected static char HIRAGANA_LETTER_SMALL_I
           
protected static char HIRAGANA_LETTER_SMALL_O
           
protected static char HIRAGANA_LETTER_SMALL_TU
           
protected static char HIRAGANA_LETTER_SMALL_U
           
protected static char HIRAGANA_LETTER_SMALL_WA
           
protected static char HIRAGANA_LETTER_SMALL_YA
           
protected static char HIRAGANA_LETTER_SMALL_YO
           
protected static char HIRAGANA_LETTER_SMALL_YU
           
protected static char HIRAGANA_LETTER_TU
           
protected static char HIRAGANA_LETTER_U
           
protected static char HIRAGANA_LETTER_VU
           
protected static char HIRAGANA_LETTER_WA
           
protected static char HIRAGANA_LETTER_YA
           
protected static char HIRAGANA_LETTER_YO
           
protected static char HIRAGANA_LETTER_YU
           
protected static char HIRAGANA_SEMIVOICED_SOUND_MARK
           
protected static char HIRAGANA_VOICED_ITERATION_MARK
           
protected static char IDEOGRAPHIC_ITERATION_MARK
           
protected static char KATAKANA_HIRAGANA_PROLONGED_SOUND_MARK
           
protected static char KATAKANA_ITERATION_MARK
           
protected static char KATAKANA_LETTER_A
           
protected static char KATAKANA_LETTER_DI
           
protected static char KATAKANA_LETTER_E
           
protected static char KATAKANA_LETTER_I
           
protected static char KATAKANA_LETTER_MO
           
protected static char KATAKANA_LETTER_O
           
protected static char KATAKANA_LETTER_RO
           
protected static char KATAKANA_LETTER_SMALL_A
           
protected static char KATAKANA_LETTER_SMALL_E
           
protected static char KATAKANA_LETTER_SMALL_I
           
protected static char KATAKANA_LETTER_SMALL_KA
           
protected static char KATAKANA_LETTER_SMALL_KE
           
protected static char KATAKANA_LETTER_SMALL_O
           
protected static char KATAKANA_LETTER_SMALL_TU
           
protected static char KATAKANA_LETTER_SMALL_U
           
protected static char KATAKANA_LETTER_SMALL_WA
           
protected static char KATAKANA_LETTER_SMALL_YA
           
protected static char KATAKANA_LETTER_SMALL_YO
           
protected static char KATAKANA_LETTER_SMALL_YU
           
protected static char KATAKANA_LETTER_TU
           
protected static char KATAKANA_LETTER_U
           
protected static char KATAKANA_LETTER_VA
           
protected static char KATAKANA_LETTER_VO
           
protected static char KATAKANA_LETTER_VU
           
protected static char KATAKANA_LETTER_WA
           
protected static char KATAKANA_LETTER_YA
           
protected static char KATAKANA_LETTER_YO
           
protected static char KATAKANA_LETTER_YU
           
protected static char KATAKANA_VOICED_ITERATION_MARK
           
protected static char LATIN1_DEGREE_SIGN
           
protected static char LATIN1_SOFTHYPHEN
           
private  UnicodeClassMapping mappingTable
           
protected static char NONBREAKING_HYPHEN
           
protected static char PER_MILLE_SIGN
           
protected static char PER_TEN_THOUSAND_SIGN
           
protected static char PRIME
           
protected static char PUNCTUATION_HYPHENATION_POINT
           
protected static char PUNCTUATION_IDEOGRAPHIC_COMMA
           
protected static char PUNCTUATION_IDEOGRAPHIC_FULL_STOP
           
protected static char PUNCTUATION_LINE_SEPARATOR
           
protected static char PUNCTUATION_PARAGRAPH_SEPARATOR
           
protected static char TRIPLE_PRIME
           
protected static char UNICODE_HIGH_BOUND_HAN
           
protected static char UNICODE_LOW_BOUND_HAN
           
protected static char UNICODE_ZERO_WIDTH_NON_BREAKING_SPACE
           
 
Constructor Summary
protected TextBoundaryData(WordBreakTable fwd, WordBreakTable bwd, UnicodeClassMapping map)
           
 
Method Summary
 WordBreakTable backward()
           
 WordBreakTable forward()
           
 UnicodeClassMapping map()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

forwardStateTable

private WordBreakTable forwardStateTable

backwardStateTable

private WordBreakTable backwardStateTable

mappingTable

private UnicodeClassMapping mappingTable

ASCII_END_OF_TEXT

protected static final char ASCII_END_OF_TEXT
See Also:
Constant Field Values

ASCII_HORIZONTAL_TABULATION

protected static final char ASCII_HORIZONTAL_TABULATION
See Also:
Constant Field Values

ASCII_LINEFEED

protected static final char ASCII_LINEFEED
See Also:
Constant Field Values

ASCII_VERTICAL_TABULATION

protected static final char ASCII_VERTICAL_TABULATION
See Also:
Constant Field Values

ASCII_FORM_FEED

protected static final char ASCII_FORM_FEED
See Also:
Constant Field Values

ASCII_CARRIAGE_RETURN

protected static final char ASCII_CARRIAGE_RETURN
See Also:
Constant Field Values

ASCII_SPACE

protected static final char ASCII_SPACE
See Also:
Constant Field Values

ASCII_EXCLAMATION_MARK

protected static final char ASCII_EXCLAMATION_MARK
See Also:
Constant Field Values

ASCII_QUOTATION_MARK

protected static final char ASCII_QUOTATION_MARK
See Also:
Constant Field Values

ASCII_NUMBER_SIGN

protected static final char ASCII_NUMBER_SIGN
See Also:
Constant Field Values

ASCII_DOLLAR_SIGN

protected static final char ASCII_DOLLAR_SIGN
See Also:
Constant Field Values

ASCII_PERCENT

protected static final char ASCII_PERCENT
See Also:
Constant Field Values

ASCII_AMPERSAND

protected static final char ASCII_AMPERSAND
See Also:
Constant Field Values

ASCII_APOSTROPHE

protected static final char ASCII_APOSTROPHE
See Also:
Constant Field Values

ASCII_COMMA

protected static final char ASCII_COMMA
See Also:
Constant Field Values

ASCII_FULL_STOP

protected static final char ASCII_FULL_STOP
See Also:
Constant Field Values

ASCII_COLON

protected static final char ASCII_COLON
See Also:
Constant Field Values

ASCII_SEMICOLON

protected static final char ASCII_SEMICOLON
See Also:
Constant Field Values

ASCII_QUESTION_MARK

protected static final char ASCII_QUESTION_MARK
See Also:
Constant Field Values

ASCII_NONBREAKING_SPACE

protected static final char ASCII_NONBREAKING_SPACE
See Also:
Constant Field Values

ASCII_CENT_SIGN

protected static final char ASCII_CENT_SIGN
See Also:
Constant Field Values

ASCII_POUND_SIGN

protected static final char ASCII_POUND_SIGN
See Also:
Constant Field Values

ASCII_YEN_SIGN

protected static final char ASCII_YEN_SIGN
See Also:
Constant Field Values

LATIN1_SOFTHYPHEN

protected static final char LATIN1_SOFTHYPHEN
See Also:
Constant Field Values

LATIN1_DEGREE_SIGN

protected static final char LATIN1_DEGREE_SIGN
See Also:
Constant Field Values

ARABIC_PERCENT_SIGN

protected static final char ARABIC_PERCENT_SIGN
See Also:
Constant Field Values

ARABIC_DECIMAL_SEPARATOR

protected static final char ARABIC_DECIMAL_SEPARATOR
See Also:
Constant Field Values

HANGUL_CHOSEONG_LOW

protected static final char HANGUL_CHOSEONG_LOW
See Also:
Constant Field Values

HANGUL_CHOSEONG_HIGH

protected static final char HANGUL_CHOSEONG_HIGH
See Also:
Constant Field Values

HANGUL_JUNGSEONG_LOW

protected static final char HANGUL_JUNGSEONG_LOW
See Also:
Constant Field Values

HANGUL_JUNGSEONG_HIGH

protected static final char HANGUL_JUNGSEONG_HIGH
See Also:
Constant Field Values

HANGUL_JONGSEONG_LOW

protected static final char HANGUL_JONGSEONG_LOW
See Also:
Constant Field Values

HANGUL_JONGSEONG_HIGH

protected static final char HANGUL_JONGSEONG_HIGH
See Also:
Constant Field Values

FIGURE_SPACE

protected static final char FIGURE_SPACE
See Also:
Constant Field Values

NONBREAKING_HYPHEN

protected static final char NONBREAKING_HYPHEN
See Also:
Constant Field Values

PUNCTUATION_HYPHENATION_POINT

protected static final char PUNCTUATION_HYPHENATION_POINT
See Also:
Constant Field Values

PUNCTUATION_LINE_SEPARATOR

protected static final char PUNCTUATION_LINE_SEPARATOR
See Also:
Constant Field Values

PUNCTUATION_PARAGRAPH_SEPARATOR

protected static final char PUNCTUATION_PARAGRAPH_SEPARATOR
See Also:
Constant Field Values

PER_MILLE_SIGN

protected static final char PER_MILLE_SIGN
See Also:
Constant Field Values

PER_TEN_THOUSAND_SIGN

protected static final char PER_TEN_THOUSAND_SIGN
See Also:
Constant Field Values

PRIME

protected static final char PRIME
See Also:
Constant Field Values

DOUBLE_PRIME

protected static final char DOUBLE_PRIME
See Also:
Constant Field Values

TRIPLE_PRIME

protected static final char TRIPLE_PRIME
See Also:
Constant Field Values

DEGREE_CELSIUS

protected static final char DEGREE_CELSIUS
See Also:
Constant Field Values

DEGREE_FAHRENHEIT

protected static final char DEGREE_FAHRENHEIT
See Also:
Constant Field Values

PUNCTUATION_IDEOGRAPHIC_COMMA

protected static final char PUNCTUATION_IDEOGRAPHIC_COMMA
See Also:
Constant Field Values

PUNCTUATION_IDEOGRAPHIC_FULL_STOP

protected static final char PUNCTUATION_IDEOGRAPHIC_FULL_STOP
See Also:
Constant Field Values

IDEOGRAPHIC_ITERATION_MARK

protected static final char IDEOGRAPHIC_ITERATION_MARK
See Also:
Constant Field Values

HIRAGANA_LETTER_SMALL_A

protected static final char HIRAGANA_LETTER_SMALL_A
See Also:
Constant Field Values

HIRAGANA_LETTER_A

protected static final char HIRAGANA_LETTER_A
See Also:
Constant Field Values

HIRAGANA_LETTER_SMALL_I

protected static final char HIRAGANA_LETTER_SMALL_I
See Also:
Constant Field Values

HIRAGANA_LETTER_I

protected static final char HIRAGANA_LETTER_I
See Also:
Constant Field Values

HIRAGANA_LETTER_SMALL_U

protected static final char HIRAGANA_LETTER_SMALL_U
See Also:
Constant Field Values

HIRAGANA_LETTER_U

protected static final char HIRAGANA_LETTER_U
See Also:
Constant Field Values

HIRAGANA_LETTER_SMALL_E

protected static final char HIRAGANA_LETTER_SMALL_E
See Also:
Constant Field Values

HIRAGANA_LETTER_E

protected static final char HIRAGANA_LETTER_E
See Also:
Constant Field Values

HIRAGANA_LETTER_SMALL_O

protected static final char HIRAGANA_LETTER_SMALL_O
See Also:
Constant Field Values

HIRAGANA_LETTER_O

protected static final char HIRAGANA_LETTER_O
See Also:
Constant Field Values

HIRAGANA_LETTER_DI

protected static final char HIRAGANA_LETTER_DI
See Also:
Constant Field Values

HIRAGANA_LETTER_SMALL_TU

protected static final char HIRAGANA_LETTER_SMALL_TU
See Also:
Constant Field Values

HIRAGANA_LETTER_TU

protected static final char HIRAGANA_LETTER_TU
See Also:
Constant Field Values

HIRAGANA_LETTER_MO

protected static final char HIRAGANA_LETTER_MO
See Also:
Constant Field Values

HIRAGANA_LETTER_SMALL_YA

protected static final char HIRAGANA_LETTER_SMALL_YA
See Also:
Constant Field Values

HIRAGANA_LETTER_YA

protected static final char HIRAGANA_LETTER_YA
See Also:
Constant Field Values

HIRAGANA_LETTER_SMALL_YU

protected static final char HIRAGANA_LETTER_SMALL_YU
See Also:
Constant Field Values

HIRAGANA_LETTER_YU

protected static final char HIRAGANA_LETTER_YU
See Also:
Constant Field Values

HIRAGANA_LETTER_SMALL_YO

protected static final char HIRAGANA_LETTER_SMALL_YO
See Also:
Constant Field Values

HIRAGANA_LETTER_YO

protected static final char HIRAGANA_LETTER_YO
See Also:
Constant Field Values

HIRAGANA_LETTER_RO

protected static final char HIRAGANA_LETTER_RO
See Also:
Constant Field Values

HIRAGANA_LETTER_SMALL_WA

protected static final char HIRAGANA_LETTER_SMALL_WA
See Also:
Constant Field Values

HIRAGANA_LETTER_WA

protected static final char HIRAGANA_LETTER_WA
See Also:
Constant Field Values

HIRAGANA_LETTER_VU

protected static final char HIRAGANA_LETTER_VU
See Also:
Constant Field Values

COMBINING_KATAKANA_HIRAGANA_VOICED_SOUND_MARK

protected static final char COMBINING_KATAKANA_HIRAGANA_VOICED_SOUND_MARK
See Also:
Constant Field Values

HIRAGANA_SEMIVOICED_SOUND_MARK

protected static final char HIRAGANA_SEMIVOICED_SOUND_MARK
See Also:
Constant Field Values

HIRAGANA_ITERATION_MARK

protected static final char HIRAGANA_ITERATION_MARK
See Also:
Constant Field Values

HIRAGANA_VOICED_ITERATION_MARK

protected static final char HIRAGANA_VOICED_ITERATION_MARK
See Also:
Constant Field Values

KATAKANA_LETTER_SMALL_A

protected static final char KATAKANA_LETTER_SMALL_A
See Also:
Constant Field Values

KATAKANA_LETTER_A

protected static final char KATAKANA_LETTER_A
See Also:
Constant Field Values

KATAKANA_LETTER_SMALL_I

protected static final char KATAKANA_LETTER_SMALL_I
See Also:
Constant Field Values

KATAKANA_LETTER_I

protected static final char KATAKANA_LETTER_I
See Also:
Constant Field Values

KATAKANA_LETTER_SMALL_U

protected static final char KATAKANA_LETTER_SMALL_U
See Also:
Constant Field Values

KATAKANA_LETTER_U

protected static final char KATAKANA_LETTER_U
See Also:
Constant Field Values

KATAKANA_LETTER_SMALL_E

protected static final char KATAKANA_LETTER_SMALL_E
See Also:
Constant Field Values

KATAKANA_LETTER_E

protected static final char KATAKANA_LETTER_E
See Also:
Constant Field Values

KATAKANA_LETTER_SMALL_O

protected static final char KATAKANA_LETTER_SMALL_O
See Also:
Constant Field Values

KATAKANA_LETTER_O

protected static final char KATAKANA_LETTER_O
See Also:
Constant Field Values

KATAKANA_LETTER_DI

protected static final char KATAKANA_LETTER_DI
See Also:
Constant Field Values

KATAKANA_LETTER_SMALL_TU

protected static final char KATAKANA_LETTER_SMALL_TU
See Also:
Constant Field Values

KATAKANA_LETTER_TU

protected static final char KATAKANA_LETTER_TU
See Also:
Constant Field Values

KATAKANA_LETTER_MO

protected static final char KATAKANA_LETTER_MO
See Also:
Constant Field Values

KATAKANA_LETTER_SMALL_YA

protected static final char KATAKANA_LETTER_SMALL_YA
See Also:
Constant Field Values

KATAKANA_LETTER_YA

protected static final char KATAKANA_LETTER_YA
See Also:
Constant Field Values

KATAKANA_LETTER_SMALL_YU

protected static final char KATAKANA_LETTER_SMALL_YU
See Also:
Constant Field Values

KATAKANA_LETTER_YU

protected static final char KATAKANA_LETTER_YU
See Also:
Constant Field Values

KATAKANA_LETTER_SMALL_YO

protected static final char KATAKANA_LETTER_SMALL_YO
See Also:
Constant Field Values

KATAKANA_LETTER_YO

protected static final char KATAKANA_LETTER_YO
See Also:
Constant Field Values

KATAKANA_LETTER_RO

protected static final char KATAKANA_LETTER_RO
See Also:
Constant Field Values

KATAKANA_LETTER_SMALL_WA

protected static final char KATAKANA_LETTER_SMALL_WA
See Also:
Constant Field Values

KATAKANA_LETTER_WA

protected static final char KATAKANA_LETTER_WA
See Also:
Constant Field Values

KATAKANA_LETTER_VU

protected static final char KATAKANA_LETTER_VU
See Also:
Constant Field Values

KATAKANA_LETTER_SMALL_KA

protected static final char KATAKANA_LETTER_SMALL_KA
See Also:
Constant Field Values

KATAKANA_LETTER_SMALL_KE

protected static final char KATAKANA_LETTER_SMALL_KE
See Also:
Constant Field Values

KATAKANA_LETTER_VA

protected static final char KATAKANA_LETTER_VA
See Also:
Constant Field Values

KATAKANA_LETTER_VO

protected static final char KATAKANA_LETTER_VO
See Also:
Constant Field Values

KATAKANA_HIRAGANA_PROLONGED_SOUND_MARK

protected static final char KATAKANA_HIRAGANA_PROLONGED_SOUND_MARK
See Also:
Constant Field Values

KATAKANA_ITERATION_MARK

protected static final char KATAKANA_ITERATION_MARK
See Also:
Constant Field Values

KATAKANA_VOICED_ITERATION_MARK

protected static final char KATAKANA_VOICED_ITERATION_MARK
See Also:
Constant Field Values

UNICODE_LOW_BOUND_HAN

protected static final char UNICODE_LOW_BOUND_HAN
See Also:
Constant Field Values

UNICODE_HIGH_BOUND_HAN

protected static final char UNICODE_HIGH_BOUND_HAN
See Also:
Constant Field Values

HANGUL_SYL_LOW

protected static final char HANGUL_SYL_LOW
See Also:
Constant Field Values

HANGUL_SYL_HIGH

protected static final char HANGUL_SYL_HIGH
See Also:
Constant Field Values

CJK_COMPATIBILITY_F900

protected static final char CJK_COMPATIBILITY_F900
See Also:
Constant Field Values

CJK_COMPATIBILITY_FA2D

protected static final char CJK_COMPATIBILITY_FA2D
See Also:
Constant Field Values

UNICODE_ZERO_WIDTH_NON_BREAKING_SPACE

protected static final char UNICODE_ZERO_WIDTH_NON_BREAKING_SPACE
See Also:
Constant Field Values

FULLWIDTH_EXCLAMATION_MARK

protected static final char FULLWIDTH_EXCLAMATION_MARK
See Also:
Constant Field Values

FULLWIDTH_COMMA

protected static final char FULLWIDTH_COMMA
See Also:
Constant Field Values

FULLWIDTH_FULL_STOP

protected static final char FULLWIDTH_FULL_STOP
See Also:
Constant Field Values

FULLWIDTH_QUESTION_MARK

protected static final char FULLWIDTH_QUESTION_MARK
See Also:
Constant Field Values

END_OF_STRING

protected static final char END_OF_STRING
See Also:
Constant Field Values
Constructor Detail

TextBoundaryData

protected TextBoundaryData(WordBreakTable fwd,
                           WordBreakTable bwd,
                           UnicodeClassMapping map)
Method Detail

forward

public WordBreakTable forward()

backward

public WordBreakTable backward()

map

public UnicodeClassMapping map()