mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-15 17:56:54 +00:00
ICU-5051 swat deprecated
X-SVN-Rev: 19262
This commit is contained in:
parent
b71b468251
commit
60b2d30f2f
6 changed files with 75 additions and 75 deletions
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2005, International Business Machines Corporation and *
|
||||
* Copyright (C) 2006, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -25,7 +25,7 @@ import java.io.Reader;
|
|||
* The natural ordering is based on the match confidence value.
|
||||
*
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public class CharsetMatch implements Comparable {
|
||||
|
||||
|
@ -42,7 +42,7 @@ public class CharsetMatch implements Comparable {
|
|||
* @return the Reader for the Unicode character data.
|
||||
*
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public Reader getReader() {
|
||||
InputStream inputStream = fInputStream;
|
||||
|
@ -66,7 +66,7 @@ public class CharsetMatch implements Comparable {
|
|||
* @return a String created from the converted input data.
|
||||
*
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public String getString() throws java.io.IOException {
|
||||
return getString(-1);
|
||||
|
@ -86,7 +86,7 @@ public class CharsetMatch implements Comparable {
|
|||
* @return a String created from the converted input data.
|
||||
*
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public String getString(int maxLength) throws java.io.IOException {
|
||||
String result = null;
|
||||
|
@ -121,7 +121,7 @@ public class CharsetMatch implements Comparable {
|
|||
* @return the confidence in the charset match
|
||||
*
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public int getConfidence() {
|
||||
return fConfidence;
|
||||
|
@ -133,7 +133,7 @@ public class CharsetMatch implements Comparable {
|
|||
*
|
||||
* @see #getMatchType
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
static public final int ENCODING_SCHEME = 1;
|
||||
|
||||
|
@ -142,7 +142,7 @@ public class CharsetMatch implements Comparable {
|
|||
*
|
||||
* @see #getMatchType
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
static public final int BOM = 2;
|
||||
|
||||
|
@ -151,7 +151,7 @@ public class CharsetMatch implements Comparable {
|
|||
*
|
||||
* @see #getMatchType
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
static public final int DECLARED_ENCODING = 4;
|
||||
|
||||
|
@ -160,7 +160,7 @@ public class CharsetMatch implements Comparable {
|
|||
*
|
||||
* @see #getMatchType
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
static public final int LANG_STATISTICS = 8;
|
||||
|
||||
|
@ -177,7 +177,7 @@ public class CharsetMatch implements Comparable {
|
|||
* @return the type of match found for this charset.
|
||||
*
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public int getMatchType() {
|
||||
// TODO: create a list of enum-like constants for common combinations of types of matches.
|
||||
|
@ -198,7 +198,7 @@ public class CharsetMatch implements Comparable {
|
|||
* @return The name of the charset.
|
||||
*
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public String getName() {
|
||||
return fRecognizer.getName();
|
||||
|
@ -210,7 +210,7 @@ public class CharsetMatch implements Comparable {
|
|||
* @return The ISO code for the language or <code>null</code> if the language cannot be determined.
|
||||
*
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public String getLanguage() {
|
||||
return fRecognizer.getLanguage();
|
||||
|
@ -229,7 +229,7 @@ public class CharsetMatch implements Comparable {
|
|||
* the argument.
|
||||
* @throws ClassCastException if the argument is not a CharsetMatch.
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public int compareTo (Object o) {
|
||||
CharsetMatch other = (CharsetMatch)o;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*********************************************************************
|
||||
* Copyright (C) 2000-2005, International Business Machines Corporation and
|
||||
* Copyright (C) 2000-2006, International Business Machines Corporation and
|
||||
* others. All Rights Reserved.
|
||||
*********************************************************************
|
||||
*/
|
||||
|
@ -60,7 +60,7 @@ public class ChineseDateFormat extends SimpleDateFormat {
|
|||
* @param pattern the pattern
|
||||
* @param locale the locale
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public ChineseDateFormat(String pattern, ULocale locale) {
|
||||
// TODO: convert CDFS to use ULocale
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/****************************************************************************
|
||||
* Copyright (C) 2000-2005, International Business Machines Corporation and
|
||||
* Copyright (C) 2000-2006, International Business Machines Corporation and
|
||||
* others. All Rights Reserved.
|
||||
****************************************************************************
|
||||
*/
|
||||
|
@ -50,7 +50,7 @@ public class ChineseDateFormatSymbols extends DateFormatSymbols {
|
|||
* Construct a ChineseDateFormatSymbols for the provided locale.
|
||||
* @param locale the locale
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public ChineseDateFormatSymbols(ULocale locale) {
|
||||
super(ChineseCalendar.class, locale);
|
||||
|
@ -71,7 +71,7 @@ public class ChineseDateFormatSymbols extends DateFormatSymbols {
|
|||
* @param cal the Calendar
|
||||
* @param locale the locale
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public ChineseDateFormatSymbols(Calendar cal, ULocale locale) {
|
||||
super(cal == null ? null : cal.getClass(), locale);
|
||||
|
@ -87,7 +87,7 @@ public class ChineseDateFormatSymbols extends DateFormatSymbols {
|
|||
|
||||
/**
|
||||
* @draft ICU 3.0
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
protected void initializeData(ULocale loc, CalendarData calData) {
|
||||
super.initializeData(loc, calData);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*******************************************************************************
|
||||
* Copyright (C) 1996-2005, International Business Machines Corporation and *
|
||||
* Copyright (C) 1996-2006, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -188,7 +188,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* should not be used, IDENTICAL should be used instead. ICU's
|
||||
* collation does not support Java's FULL_DECOMPOSITION mode.
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final static int FULL_DECOMPOSITION = IDENTICAL;
|
||||
|
||||
|
@ -358,7 +358,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @param loc the locale for which this collator is to be created.
|
||||
* @return the newly created collator.
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public Collator createCollator(ULocale loc) {
|
||||
return createCollator(loc.toLocale());
|
||||
|
@ -398,7 +398,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @param displayLocale the locale for which the display name of the collator should be localized
|
||||
* @return the display name
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public String getDisplayName(ULocale objectLocale, ULocale displayLocale) {
|
||||
if (visible()) {
|
||||
|
@ -477,7 +477,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @see #getInstance(Locale)
|
||||
* @see #getInstance()
|
||||
* @draft ICU 3.0
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final Collator getInstance(ULocale locale) {
|
||||
// fetching from service cache is faster than instantiation
|
||||
|
@ -510,7 +510,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @return an object that can be used to unregister the registered collator.
|
||||
*
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final Object registerInstance(Collator collator, ULocale locale) {
|
||||
return getShim().registerInstance(collator, locale);
|
||||
|
@ -564,7 +564,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* This list includes any that have been registered, in addition to
|
||||
* those that are installed with ICU4J.
|
||||
* @draft ICU 3.0
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final ULocale[] getAvailableULocales() {
|
||||
if (shim == null) {
|
||||
|
@ -600,7 +600,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @return an array of valid collation keywords.
|
||||
* @see #getKeywordValues
|
||||
* @draft ICU 3.0
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final String[] getKeywords() {
|
||||
return KEYWORDS;
|
||||
|
@ -612,7 +612,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @param keyword one of the keywords returned by getKeywords.
|
||||
* @see #getKeywords
|
||||
* @draft ICU 3.0
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final String[] getKeywordValues(String keyword) {
|
||||
if (!keyword.equals(KEYWORDS[0])) {
|
||||
|
@ -646,7 +646,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* data. If non-null, isAvailable must have length >= 1.
|
||||
* @return the locale
|
||||
* @draft ICU 3.0
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final ULocale getFunctionalEquivalent(String keyword,
|
||||
ULocale locID,
|
||||
|
@ -665,7 +665,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @return the locale
|
||||
* @see #getFunctionalEquivalent(String,ULocale,boolean[])
|
||||
* @draft ICU 3.0
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final ULocale getFunctionalEquivalent(String keyword,
|
||||
ULocale locID) {
|
||||
|
@ -690,7 +690,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @param displayLocale the locale for the collator's display name
|
||||
* @return the display name
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
static public String getDisplayName(ULocale objectLocale, ULocale displayLocale) {
|
||||
return getShim().getDisplayName(objectLocale, displayLocale);
|
||||
|
@ -711,7 +711,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @param objectLocale the locale of the collator
|
||||
* @return the display name
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
static public String getDisplayName(ULocale objectLocale) {
|
||||
return getShim().getDisplayName(objectLocale, ULocale.getDefault());
|
||||
|
@ -988,7 +988,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @see com.ibm.icu.util.ULocale#VALID_LOCALE
|
||||
* @see com.ibm.icu.util.ULocale#ACTUAL_LOCALE
|
||||
* @draft ICU 2.8 (retain)
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final ULocale getLocale(ULocale.Type type) {
|
||||
return type == ULocale.ACTUAL_LOCALE ?
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1996-2005, International Business Machines
|
||||
* Copyright (C) 1996-2006, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*/
|
||||
|
||||
|
@ -192,7 +192,7 @@ public abstract class DateFormat extends UFormat {
|
|||
* FieldPosition selector for 'S' field alignment,
|
||||
* corresponding to the {@link Calendar#MILLISECOND} field.
|
||||
* @draft ICU 3.0
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final static int FRACTIONAL_SECOND_FIELD = 8;
|
||||
|
||||
|
@ -274,7 +274,7 @@ public abstract class DateFormat extends UFormat {
|
|||
* FieldPosition selector for 'Y' field alignment,
|
||||
* corresponding to the {@link Calendar#YEAR_WOY} field.
|
||||
* @draft ICU 3.0
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final static int YEAR_WOY_FIELD = 18;
|
||||
|
||||
|
@ -282,7 +282,7 @@ public abstract class DateFormat extends UFormat {
|
|||
* FieldPosition selector for 'e' field alignment,
|
||||
* corresponding to the {@link Calendar#DOW_LOCAL} field.
|
||||
* @draft ICU 3.0
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final static int DOW_LOCAL_FIELD = 19;
|
||||
|
||||
|
@ -290,7 +290,7 @@ public abstract class DateFormat extends UFormat {
|
|||
* FieldPosition selector for 'u' field alignment,
|
||||
* corresponding to the {@link Calendar#EXTENDED_YEAR} field.
|
||||
* @draft ICU 3.0
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final static int EXTENDED_YEAR_FIELD = 20;
|
||||
|
||||
|
@ -298,7 +298,7 @@ public abstract class DateFormat extends UFormat {
|
|||
* FieldPosition selector for 'g' field alignment,
|
||||
* corresponding to the {@link Calendar#JULIAN_DAY} field.
|
||||
* @draft ICU 3.0
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final static int JULIAN_DAY_FIELD = 21;
|
||||
|
||||
|
@ -306,7 +306,7 @@ public abstract class DateFormat extends UFormat {
|
|||
* FieldPosition selector for 'A' field alignment,
|
||||
* corresponding to the {@link Calendar#MILLISECONDS_IN_DAY} field.
|
||||
* @draft ICU 3.0
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final static int MILLISECONDS_IN_DAY_FIELD = 22;
|
||||
|
||||
|
@ -315,7 +315,7 @@ public abstract class DateFormat extends UFormat {
|
|||
* corresponding to the {@link Calendar#ZONE_OFFSET} and
|
||||
* {@link Calendar#DST_OFFSET} fields.
|
||||
* @draft ICU 3.0
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final static int TIMEZONE_RFC_FIELD = 23;
|
||||
|
||||
|
@ -325,7 +325,7 @@ public abstract class DateFormat extends UFormat {
|
|||
* {@link Calendar#DST_OFFSET} fields. This displays the generic zone
|
||||
* name, if available.
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final static int TIMEZONE_GENERIC_FIELD = 24;
|
||||
|
||||
|
@ -336,7 +336,7 @@ public abstract class DateFormat extends UFormat {
|
|||
* corresponding to the {@link Calendar#DAY_OF_WEEK} field.
|
||||
* This displays the stand alone day name, if available.
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final static int STANDALONE_DAY_FIELD = 25;
|
||||
|
||||
|
@ -345,7 +345,7 @@ public abstract class DateFormat extends UFormat {
|
|||
* corresponding to the {@link Calendar#MONTH} field.
|
||||
* This displays the stand alone month name, if available.
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final static int STANDALONE_MONTH_FIELD = 26;
|
||||
|
||||
|
@ -353,7 +353,7 @@ public abstract class DateFormat extends UFormat {
|
|||
* Number of FieldPosition selectors for DateFormat.
|
||||
* Valid selectors range from 0 to FIELD_COUNT-1.
|
||||
* @draft ICU 3.0
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final static int FIELD_COUNT = 27; // must == DateFormatSymbols.patternChars.length()
|
||||
|
||||
|
@ -646,7 +646,7 @@ public abstract class DateFormat extends UFormat {
|
|||
* @param locale the given ulocale.
|
||||
* @return a time formatter.
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final static DateFormat getTimeInstance(int style,
|
||||
ULocale locale)
|
||||
|
@ -701,7 +701,7 @@ public abstract class DateFormat extends UFormat {
|
|||
* @param locale the given ulocale.
|
||||
* @return a date formatter.
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final static DateFormat getDateInstance(int style,
|
||||
ULocale locale)
|
||||
|
@ -759,7 +759,7 @@ public abstract class DateFormat extends UFormat {
|
|||
* @param locale the given ulocale.
|
||||
* @return a date/time formatter.
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final static DateFormat
|
||||
getDateTimeInstance(int dateStyle, int timeStyle, ULocale locale)
|
||||
|
@ -790,7 +790,7 @@ public abstract class DateFormat extends UFormat {
|
|||
* Gets the set of locales for which DateFormats are installed.
|
||||
* @return the set of locales for which DateFormats are installed.
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static ULocale[] getAvailableULocales()
|
||||
{
|
||||
|
@ -995,7 +995,7 @@ public abstract class DateFormat extends UFormat {
|
|||
*
|
||||
* @param locale The locale for which the date format is desired.
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
static final public DateFormat getDateInstance(Calendar cal, int dateStyle, ULocale locale)
|
||||
{
|
||||
|
@ -1042,7 +1042,7 @@ public abstract class DateFormat extends UFormat {
|
|||
*
|
||||
* @see DateFormat#getTimeInstance
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
static final public DateFormat getTimeInstance(Calendar cal, int timeStyle, ULocale locale)
|
||||
{
|
||||
|
@ -1098,7 +1098,7 @@ public abstract class DateFormat extends UFormat {
|
|||
*
|
||||
* @see DateFormat#getDateTimeInstance
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
static final public DateFormat getDateTimeInstance(Calendar cal, int dateStyle,
|
||||
int timeStyle, ULocale locale)
|
||||
|
@ -1117,7 +1117,7 @@ public abstract class DateFormat extends UFormat {
|
|||
/**
|
||||
* Convenience overload
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
static final public DateFormat getInstance(Calendar cal, ULocale locale) {
|
||||
return getDateTimeInstance(cal, SHORT, SHORT, locale);
|
||||
|
|
|
@ -82,21 +82,21 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
/**
|
||||
* Constant for context.
|
||||
* @draft ICU 3.6
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final int FORMAT = 0;
|
||||
|
||||
/**
|
||||
* Constant for context.
|
||||
* @draft ICU 3.6
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final int STANDALONE = 1;
|
||||
|
||||
/**
|
||||
* Constant for context.
|
||||
* @internal revisit for ICU 3.6
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final int DT_CONTEXT_COUNT = 2;
|
||||
|
||||
|
@ -105,28 +105,28 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
/**
|
||||
* Constant for width.
|
||||
* @draft ICU 3.6
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final int ABBREVIATED = 0;
|
||||
|
||||
/**
|
||||
* Constant for width.
|
||||
* @draft ICU 3.6
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final int WIDE = 1;
|
||||
|
||||
/**
|
||||
* Constant for width.
|
||||
* @draft ICU 3.6
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final int NARROW = 2;
|
||||
|
||||
/**
|
||||
* Constant for width.
|
||||
* @internal revisit for ICU 3.6
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static final int DT_WIDTH_COUNT = 3;
|
||||
|
||||
|
@ -166,7 +166,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
* if the resources for the specified locale cannot be
|
||||
* found or cannot be loaded.
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public DateFormatSymbols(ULocale locale)
|
||||
{
|
||||
|
@ -376,7 +376,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
* Gets era name strings. For example: "Anno Domini" and "Before Christ".
|
||||
* @return the era strings.
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public String[] getEraNames() {
|
||||
return duplicate(eraNames);
|
||||
|
@ -406,7 +406,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
* either WIDE, ABBREVIATED, or NARROW.
|
||||
* @return the month strings.
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public String[] getMonths(int context, int width) {
|
||||
String [] returnValue = null;
|
||||
|
@ -457,7 +457,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
* @param width The width of the month string,
|
||||
* either WIDE, ABBREVIATED, or NARROW.
|
||||
* @internal revisit for ICU 3.6
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public void setMonths(String[] newMonths, int context, int width) {
|
||||
switch (context) {
|
||||
|
@ -526,7 +526,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
* @param width Width of strings to be returned, either
|
||||
* WIDE, ABBREVIATED, or NARROW
|
||||
* @draft ICU 3.4
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public String[] getWeekdays(int context, int width) {
|
||||
String [] returnValue = null;
|
||||
|
@ -568,7 +568,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
* @param width The width of the strings,
|
||||
* either WIDE, ABBREVIATED, or NARROW.
|
||||
* @internal revisit for ICU 3.6
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public void setWeekdays(String[] newWeekdays, int context, int width) {
|
||||
switch (context) {
|
||||
|
@ -781,7 +781,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
* @param desiredLocale
|
||||
* @param type
|
||||
* @draft ICU 3.0
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
protected void initializeData(ULocale desiredLocale, String type)
|
||||
{
|
||||
|
@ -794,7 +794,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
* @param desiredLocale
|
||||
* @param calData
|
||||
* @draft ICU 3.0
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
protected void initializeData(ULocale desiredLocale, CalendarData calData)
|
||||
{
|
||||
|
@ -1449,7 +1449,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
*
|
||||
* @see DateFormatSymbols#DateFormatSymbols(java.util.Locale)
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public DateFormatSymbols(Calendar cal, ULocale locale) {
|
||||
initializeData(locale, cal.getType());
|
||||
|
@ -1470,7 +1470,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
* instead of a Calandar instance.
|
||||
* @see #DateFormatSymbols(Calendar, Locale)
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public DateFormatSymbols(Class calendarClass, ULocale locale) {
|
||||
String fullName = calendarClass.getName();
|
||||
|
@ -1498,7 +1498,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
* default DateFormatSymbols for the locale.
|
||||
* @see DateFormatSymbols#DateFormatSymbols
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public DateFormatSymbols(ResourceBundle bundle, ULocale locale) {
|
||||
initializeData(locale,
|
||||
|
@ -1531,7 +1531,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
* For example, the bundle corresponding to "com.ibm.icu.util.HebrewCalendar"
|
||||
* is "com.ibm.icu.impl.data.HebrewCalendarSymbols".
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
static public ResourceBundle getDateFormatBundle(Class calendarClass, ULocale locale)
|
||||
throws MissingResourceException {
|
||||
|
@ -1578,7 +1578,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
* a Calendar instance instead of a Calendar class.
|
||||
* @see #getDateFormatBundle(java.lang.Class, java.util.Locale)
|
||||
* @draft ICU 3.2
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public static ResourceBundle getDateFormatBundle(Calendar cal, ULocale locale)
|
||||
throws MissingResourceException {
|
||||
|
@ -1609,7 +1609,7 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
* @see com.ibm.icu.util.ULocale#VALID_LOCALE
|
||||
* @see com.ibm.icu.util.ULocale#ACTUAL_LOCALE
|
||||
* @draft ICU 2.8 (retain)
|
||||
* @deprecated This is a draft API and might change in a future release of ICU.
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public final ULocale getLocale(ULocale.Type type) {
|
||||
return type == ULocale.ACTUAL_LOCALE ?
|
||||
|
|
Loading…
Add table
Reference in a new issue