Class DocLocale

java.lang.Object
gw.gosudoc.com.sun.tools.javadoc.main.DocLocale

@Deprecated class DocLocale extends Object
Deprecated.
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 Details

    • localeName

      final String localeName
      Deprecated.
      The locale name will be set by Main, if option is provided on the command line.
    • locale

      final Locale locale
      Deprecated.
      The locale to be used. If user doesn't provide this, then set it to default locale value.
    • collator

      final 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 BreakIterator sentenceBreaker
      Deprecated.
      Sentence instance from the BreakIterator.
    • useBreakIterator

      private boolean useBreakIterator
      Deprecated.
      True is we should use BreakIterator to compute first sentence.
    • sentenceTerminators

      static final String[] sentenceTerminators
      Deprecated.
      The HTML sentence terminators.
  • Constructor Details

    • DocLocale

      DocLocale(DocEnv docenv, String localeName, boolean useBreakIterator)
      Deprecated.
      Constructor
  • Method Details

    • getLocale

      private 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 Locale searchLocale(String language, String country, String variant)
      Deprecated.
      Search the locale for specified language, specified country and specified variant.
    • localeSpecificFirstSentence

      String localeSpecificFirstSentence(DocImpl doc, String s)
      Deprecated.
    • englishLanguageFirstSentence

      private String englishLanguageFirstSentence(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(String str, int index)
      Deprecated.
      Find out if there is any HTML tag in the given string. If found return true else return false.