Class DocLocale
- java.lang.Object
-
- gw.gosudoc.com.sun.tools.javadoc.main.DocLocale
-
@Deprecated class DocLocale extends java.lang.ObjectDeprecated.This class holds the information about locales.This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
- Since:
- 1.4
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.text.CollatorcollatorDeprecated.The collator for this application.private DocEnvdocenvDeprecated.Enclosing DocEnv(package private) java.util.LocalelocaleDeprecated.The locale to be used.(package private) java.lang.StringlocaleNameDeprecated.The locale name will be set by Main, if option is provided on the command line.private java.text.BreakIteratorsentenceBreakerDeprecated.Sentence instance from the BreakIterator.(package private) static java.lang.String[]sentenceTerminatorsDeprecated.The HTML sentence terminators.private booleanuseBreakIteratorDeprecated.True is we should useBreakIteratorto compute first sentence.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private java.lang.StringenglishLanguageFirstSentence(java.lang.String s)Deprecated.Return the first sentence of a string, where a sentence ends with a period followed be white space.private java.util.LocalegetLocale()Deprecated.Get the locale if specified on the command line else return null and if locale option is not used then return default locale.private booleanhtmlSentenceTerminatorFound(java.lang.String str, int index)Deprecated.Find out if there is any HTML tag in the given string.(package private) java.lang.StringlocaleSpecificFirstSentence(DocImpl doc, java.lang.String s)Deprecated.private java.util.LocalesearchLocale(java.lang.String language, java.lang.String country, java.lang.String variant)Deprecated.Search the locale for specified language, specified country and specified variant.
-
-
-
Field Detail
-
localeName
final java.lang.String localeName
Deprecated.The locale name will be set by Main, if option is provided on the command line.
-
locale
final java.util.Locale locale
Deprecated.The locale to be used. If user doesn't provide this, then set it to default locale value.
-
collator
final java.text.Collator collator
Deprecated.The collator for this application. This is to take care of Locale Specific or Natural Language Text sorting.
-
docenv
private final DocEnv docenv
Deprecated.Enclosing DocEnv
-
sentenceBreaker
private final java.text.BreakIterator sentenceBreaker
Deprecated.Sentence instance from the BreakIterator.
-
useBreakIterator
private boolean useBreakIterator
Deprecated.True is we should useBreakIteratorto compute first sentence.
-
sentenceTerminators
static final java.lang.String[] sentenceTerminators
Deprecated.The HTML sentence terminators.
-
-
Constructor Detail
-
DocLocale
DocLocale(DocEnv docenv, java.lang.String localeName, boolean useBreakIterator)
Deprecated.Constructor
-
-
Method Detail
-
getLocale
private java.util.Locale getLocale()
Deprecated.Get the locale if specified on the command line else return null and if locale option is not used then return default locale.
-
searchLocale
private java.util.Locale searchLocale(java.lang.String language, java.lang.String country, java.lang.String variant)Deprecated.Search the locale for specified language, specified country and specified variant.
-
localeSpecificFirstSentence
java.lang.String localeSpecificFirstSentence(DocImpl doc, java.lang.String s)
Deprecated.
-
englishLanguageFirstSentence
private java.lang.String englishLanguageFirstSentence(java.lang.String s)
Deprecated.Return the first sentence of a string, where a sentence ends with a period followed be white space.
-
htmlSentenceTerminatorFound
private boolean htmlSentenceTerminatorFound(java.lang.String str, int index)Deprecated.Find out if there is any HTML tag in the given string. If found return true else return false.
-
-