Serialized Form


Package com.ibm.icu.math

Class com.ibm.icu.math.BigDecimal extends java.lang.Number implements Serializable

serialVersionUID: 8245355804974198832l

Serialized Fields

ind

byte ind
The indicator. This may take the values:

 

form

byte form
The formatting style. This may take the values:

This property is an optimization; it allows us to defer number layout until it is actually needed as a string, hence avoiding unnecessary formatting.

 

mant

byte[] mant
The value of the mantissa.

Once constructed, this may become shared between several BigDecimal objects, so must not be altered.

For efficiency (speed), this is a byte array, with each byte taking a value of 0 -> 9.

If the first byte is 0 then the value of the number is zero (and mant.length=1, except when constructed from a plain number, for example, 0.000).

 

exp

int exp
The exponent.

For fixed point arithmetic, scale is -exp, and can apply to zero. Note that this property can have a value less than MinExp when the mantissa has more than one digit.

 

Class com.ibm.icu.math.MathContext extends java.lang.Object implements Serializable

serialVersionUID: 7163376998892515376l

Serialized Fields

digits

int digits
The number of digits (precision) to be used for an operation. A value of 0 indicates that unlimited precision (as many digits as are required) will be used.

The BigDecimal operator methods use this value to determine the precision of results. Note that leading zeros (in the integer part of a number) are never significant.

digits will always be non-negative.

 

form

int form
The form of results from an operation.

The BigDecimal operator methods use this value to determine the form of results, in particular whether and how exponential notation should be used.

 
See Also:
MathContext.ENGINEERING, MathContext.PLAIN, MathContext.SCIENTIFIC

lostDigits

boolean lostDigits
Controls whether lost digits checking is enabled for an operation. Set to true to enable checking, or to false to disable checking.

When enabled, the BigDecimal operator methods check the precision of their operand or operands, and throw an ArithmeticException if an operand is more precise than the digits setting (that is, digits would be lost). When disabled, operands are rounded to the specified digits.

 

roundingMode

int roundingMode
The rounding algorithm to be used for an operation.

The BigDecimal operator methods use this value to determine the algorithm to be used when non-zero digits have to be discarded in order to reduce the precision of a result. The value must be one of the public constants whose name starts with ROUND_.

 
See Also:
MathContext.ROUND_CEILING, MathContext.ROUND_DOWN, MathContext.ROUND_FLOOR, MathContext.ROUND_HALF_DOWN, MathContext.ROUND_HALF_EVEN, MathContext.ROUND_HALF_UP, MathContext.ROUND_UNNECESSARY, MathContext.ROUND_UP


Package com.ibm.icu.text

Class com.ibm.icu.text.ArabicShapingException extends java.lang.Exception implements Serializable

serialVersionUID: 5261531805497260490l

Class com.ibm.icu.text.ChineseDateFormat extends SimpleDateFormat implements Serializable

serialVersionUID: -4610300753104099899l

Class com.ibm.icu.text.ChineseDateFormatSymbols extends DateFormatSymbols implements Serializable

serialVersionUID: 6827816119783952890l

Serialized Fields

isLeapMonth

java.lang.String[] isLeapMonth
Package-private array that ChineseDateFormat needs to be able to read.

Class com.ibm.icu.text.DateFormat extends UFormat implements Serializable

serialVersionUID: 7218322306649953788l

Serialized Fields

calendar

Calendar calendar
The calendar that DateFormat uses to produce the time field values needed to implement date and time formatting. Subclasses should initialize this to a calendar appropriate for the locale associated with this DateFormat.

 
Status:
Stable ICU 2.0.

numberFormat

NumberFormat numberFormat
The number formatter that DateFormat uses to format numbers in dates and times. Subclasses should initialize this to a number format appropriate for the locale associated with this DateFormat.

 
Status:
Stable ICU 2.0.

Class com.ibm.icu.text.DateFormatSymbols extends java.lang.Object implements Serializable

serialVersionUID: -5987973545549424702l

Serialized Fields

eras

java.lang.String[] eras
Era strings. For example: "AD" and "BC". An array of 2 strings, indexed by Calendar.BC and Calendar.AD.

 

eraNames

java.lang.String[] eraNames
Era name strings. For example: "Anno Domini" and "Before Christ". An array of 2 strings, indexed by Calendar.BC and Calendar.AD.

 

months

java.lang.String[] months
Month strings. For example: "January", "February", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.

 

shortMonths

java.lang.String[] shortMonths
Short month strings. For example: "Jan", "Feb", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.

 

narrowMonths

java.lang.String[] narrowMonths
Narrow month strings. For example: "J", "F", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.

 

standaloneMonths

java.lang.String[] standaloneMonths
Standalone month strings. For example: "January", "February", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.

 

standaloneShortMonths

java.lang.String[] standaloneShortMonths
Standalone short month strings. For example: "Jan", "Feb", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.

 

standaloneNarrowMonths

java.lang.String[] standaloneNarrowMonths
Standalone narrow month strings. For example: "J", "F", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.

 

weekdays

java.lang.String[] weekdays
Weekday strings. For example: "Sunday", "Monday", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element weekdays[0] is ignored.

 

shortWeekdays

java.lang.String[] shortWeekdays
Short weekday strings. For example: "Sun", "Mon", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element shortWeekdays[0] is ignored.

 

narrowWeekdays

java.lang.String[] narrowWeekdays
Narrow weekday strings. For example: "S", "M", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element narrowWeekdays[0] is ignored.

 

standaloneWeekdays

java.lang.String[] standaloneWeekdays
Standalone weekday strings. For example: "Sunday", "Monday", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element standaloneWeekdays[0] is ignored.

 

standaloneShortWeekdays

java.lang.String[] standaloneShortWeekdays
Standalone short weekday strings. For example: "Sun", "Mon", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element standaloneShortWeekdays[0] is ignored.

 

standaloneNarrowWeekdays

java.lang.String[] standaloneNarrowWeekdays
Standalone narrow weekday strings. For example: "S", "M", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element standaloneNarrowWeekdays[0] is ignored.

 

ampms

java.lang.String[] ampms
AM and PM strings. For example: "AM" and "PM". An array of 2 strings, indexed by Calendar.AM and Calendar.PM.

 

zoneStrings

java.lang.String[][] zoneStrings
Localized names of time zones in this locale. This is a two-dimensional array of strings of size n by m, where m is at least 5 and up to 8. Each of the n rows is an entry containing the localized names for a single TimeZone. Each such row contains (with i ranging from 0..n-1): The zone ID is not localized; it corresponds to the ID value associated with a system time zone object. All other entries are localized names. If a zone does not implement daylight savings time, the daylight savings time names are ignored.

 
See Also:
TimeZone

localPatternChars

java.lang.String localPatternChars
Localized date-time pattern characters. For example, a locale may wish to use 'u' rather than 'y' to represent years in its date format pattern strings. This string must be exactly 18 characters long, with the index of the characters described by DateFormat.ERA_FIELD, DateFormat.YEAR_FIELD, etc. Thus, if the string were "Xz...", then localized patterns would use 'X' for era and 'z' for year.

 

requestedLocale

ULocale requestedLocale
save the input locale


validLocale

ULocale validLocale
The most specific locale containing any resource data, or null.

See Also:
ULocale
Status:
Internal. This API is ICU internal only.

actualLocale

ULocale actualLocale
The locale containing data used to construct this object, or null.

See Also:
ULocale
Status:
Internal. This API is ICU internal only.

Class com.ibm.icu.text.DecimalFormat extends NumberFormat implements Serializable

serialVersionUID: 864413376551465018l

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
First, read the default serializable fields from the stream. Then if serialVersionOnStream is less than 1, indicating that the stream was written by JDK 1.1, initialize useExponentialNotation to false, since it was not present in JDK 1.1. Finally, set serialVersionOnStream back to the maximum allowed value so that default serialization will work properly if this object is streamed out again.


writeObject

private void writeObject(java.io.ObjectOutputStream stream)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Serialized Fields

positivePrefix

java.lang.String positivePrefix
The symbol used as a prefix when formatting positive numbers, e.g. "+".

 
See Also:
DecimalFormat.getPositivePrefix()

positiveSuffix

java.lang.String positiveSuffix
The symbol used as a suffix when formatting positive numbers. This is often an empty string.

 
See Also:
DecimalFormat.getPositiveSuffix()

negativePrefix

java.lang.String negativePrefix
The symbol used as a prefix when formatting negative numbers, e.g. "-".

 
See Also:
DecimalFormat.getNegativePrefix()

negativeSuffix

java.lang.String negativeSuffix
The symbol used as a suffix when formatting negative numbers. This is often an empty string.

 
See Also:
DecimalFormat.getNegativeSuffix()

posPrefixPattern

java.lang.String posPrefixPattern
The prefix pattern for non-negative numbers. This variable corresponds to positivePrefix.

This pattern is expanded by the method expandAffix() to positivePrefix to update the latter to reflect changes in symbols. If this variable is null then positivePrefix is taken as a literal value that does not change when symbols changes. This variable is always null for DecimalFormat objects older than stream version 2 restored from stream.

 

posSuffixPattern

java.lang.String posSuffixPattern
The suffix pattern for non-negative numbers. This variable corresponds to positiveSuffix. This variable is analogous to posPrefixPattern; see that variable for further documentation.

 

negPrefixPattern

java.lang.String negPrefixPattern
The prefix pattern for negative numbers. This variable corresponds to negativePrefix. This variable is analogous to posPrefixPattern; see that variable for further documentation.

 

negSuffixPattern

java.lang.String negSuffixPattern
The suffix pattern for negative numbers. This variable corresponds to negativeSuffix. This variable is analogous to posPrefixPattern; see that variable for further documentation.

 

currencyChoice

java.text.ChoiceFormat currencyChoice
Formatter for ChoiceFormat-based currency names. If this field is not null, then delegate to it to format currency symbols.

Since:
ICU 2.6

multiplier

int multiplier
The multiplier for use in percent, permill, etc.

 
See Also:
DecimalFormat.getMultiplier()

groupingSize

byte groupingSize
The number of digits between grouping separators in the integer portion of a number. Must be greater than 0 if NumberFormat.groupingUsed is true.

 
See Also:
DecimalFormat.getGroupingSize(), NumberFormat.isGroupingUsed()

groupingSize2

byte groupingSize2
The secondary grouping size. This is only used for Hindi numerals, which use a primary grouping of 3 and a secondary grouping of 2, e.g., "12,34,567". If this value is less than 1, then secondary grouping is equal to the primary grouping. [NEW]


decimalSeparatorAlwaysShown

boolean decimalSeparatorAlwaysShown
If true, forces the decimal separator to always appear in a formatted number, even if the fractional part of the number is zero.

 
See Also:
DecimalFormat.isDecimalSeparatorAlwaysShown()

symbols

DecimalFormatSymbols symbols
The DecimalFormatSymbols object used by this format. It contains the symbols used to format numbers, e.g. the grouping separator, decimal separator, and so on.

 
See Also:
DecimalFormat.setDecimalFormatSymbols(com.ibm.icu.text.DecimalFormatSymbols), DecimalFormatSymbols

useSignificantDigits

boolean useSignificantDigits
True to use significant digits rather than integer and fraction digit counts.

 
Since:
ICU 3.0

minSignificantDigits

int minSignificantDigits
The minimum number of significant digits to show. Must be >= 1 and <= maxSignificantDigits. Ignored unless useSignificantDigits == true.

 
Since:
ICU 3.0

maxSignificantDigits

int maxSignificantDigits
The maximum number of significant digits to show. Must be >= minSignficantDigits. Ignored unless useSignificantDigits == true.

 
Since:
ICU 3.0

useExponentialNotation

boolean useExponentialNotation
True to force the use of exponential (i.e. scientific) notation when formatting numbers.

Note that the JDK 1.2 public API provides no way to set this field, even though it is supported by the implementation and the stream format. The intent is that this will be added to the API in the future.

 

minExponentDigits

byte minExponentDigits
The minimum number of digits used to display the exponent when a number is formatted in exponential notation. This field is ignored if useExponentialNotation is not true.

Note that the JDK 1.2 public API provides no way to set this field, even though it is supported by the implementation and the stream format. The intent is that this will be added to the API in the future.

 

exponentSignAlwaysShown

boolean exponentSignAlwaysShown
NEW If true, the exponent is always prefixed with either the plus sign or the minus sign. Otherwise, only negative exponents are prefixed with the minus sign. This has no effect unless useExponentialNotation is true.

 
Since:
AlphaWorks NumberFormat

roundingIncrement

java.math.BigDecimal roundingIncrement
NEW The value to which numbers are rounded during formatting. For example, if the rounding increment is 0.05, then 13.371 would be formatted as 13.350, assuming 3 fraction digits. Has the value null if rounding is not in effect, or a positive value if rounding is in effect. Default value null.

 
Since:
AlphaWorks NumberFormat

roundingMode

int roundingMode
NEW The rounding mode. This value controls any rounding operations which occur when applying a rounding increment or when reducing the number of fraction digits to satisfy a maximum fraction digits limit. The value may assume any of the BigDecimal rounding mode values. Default value BigDecimal.ROUND_HALF_EVEN.

 
Since:
AlphaWorks NumberFormat

formatWidth

int formatWidth
NEW The padded format width, or zero if there is no padding. Must be >= 0. Default value zero.

 
Since:
AlphaWorks NumberFormat

pad

char pad
NEW The character used to pad the result of format to formatWidth, if padding is in effect. Default value ' '.

 
Since:
AlphaWorks NumberFormat

padPosition

int padPosition
NEW The position in the string at which the pad character will be inserted, if padding is in effect. Must have a value from PAD_BEFORE_PREFIX to PAD_AFTER_SUFFIX. Default value PAD_BEFORE_PREFIX.

 
Since:
AlphaWorks NumberFormat

serialVersionOnStream

int serialVersionOnStream
The internal serial version which says which version was written Possible values are:

 

Class com.ibm.icu.text.DecimalFormatSymbols extends java.lang.Object implements Serializable

serialVersionUID: 5772796243397350300l

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Read the default serializable fields, then if serialVersionOnStream is less than 1, initialize monetarySeparator to be the same as decimalSeparator and exponential to be 'E'. Finally, set serialVersionOnStream back to the maximum allowed value so that default serialization will work properly if this object is streamed out again.

Serialized Fields

zeroDigit

char zeroDigit
Character used for zero.

 
See Also:
DecimalFormatSymbols.getZeroDigit()

groupingSeparator

char groupingSeparator
Character used for thousands separator.

 
See Also:
DecimalFormatSymbols.getGroupingSeparator()

decimalSeparator

char decimalSeparator
Character used for decimal sign.

 
See Also:
DecimalFormatSymbols.getDecimalSeparator()

perMill

char perMill
Character used for mille percent sign.

 
See Also:
DecimalFormatSymbols.getPerMill()

percent

char percent
Character used for percent sign.

 
See Also:
DecimalFormatSymbols.getPercent()

digit

char digit
Character used for a digit in a pattern.

 
See Also:
DecimalFormatSymbols.getDigit()

sigDigit

char sigDigit
Character used for a significant digit in a pattern.

 
See Also:
DecimalFormatSymbols.getSignificantDigit()

patternSeparator

char patternSeparator
Character used to separate positive and negative subpatterns in a pattern.

 
See Also:
DecimalFormatSymbols.getPatternSeparator()

infinity

java.lang.String infinity
Character used to represent infinity.

 
See Also:
DecimalFormatSymbols.getInfinity()

NaN

java.lang.String NaN
Character used to represent NaN.

 
See Also:
DecimalFormatSymbols.getNaN()

minusSign

char minusSign
Character used to represent minus sign.

 
See Also:
DecimalFormatSymbols.getMinusSign()

currencySymbol

java.lang.String currencySymbol
String denoting the local currency, e.g. "$".

 
See Also:
DecimalFormatSymbols.getCurrencySymbol()

intlCurrencySymbol

java.lang.String intlCurrencySymbol
International string denoting the local currency, e.g. "USD".

 
See Also:
DecimalFormatSymbols.getInternationalCurrencySymbol()

monetarySeparator

char monetarySeparator
The decimal separator used when formatting currency values.

 
See Also:
DecimalFormatSymbols.getMonetaryDecimalSeparator()

exponential

char exponential
The character used to distinguish the exponent in a number formatted in exponential notation, e.g. 'E' for a number such as "1.23E45".

Note that this field has been superseded by exponentSeparator. It is retained for backward compatibility.

 

exponentSeparator

java.lang.String exponentSeparator
The string used to separate the mantissa from the exponent. Examples: "x10^" for 1.23x10^4, "E" for 1.23E4.

Note that this supersedes the exponential field.

 
Since:
AlphaWorks

padEscape

char padEscape
NEW The character used to indicate a padding character in a format, e.g., '*' in a pattern such as "$*_#,##0.00".

 
Since:
AlphaWorks

plusSign

char plusSign
NEW The character used to indicate a plus sign.

 
Since:
AlphaWorks

locale

java.util.Locale locale
The locale for which this object was constructed. Set to the default locale for objects resurrected from old streams.

Since:
ICU 2.2

ulocale

ULocale ulocale
The requested ULocale. We keep the old locale for serialization compatibility.

Since:
IDU 3.2

serialVersionOnStream

int serialVersionOnStream
Describes the version of DecimalFormatSymbols present on the stream. Possible values are: When streaming out a DecimalFormatSymbols, the most recent format (corresponding to the highest allowable serialVersionOnStream) is always written.

 

validLocale

ULocale validLocale
The most specific locale containing any resource data, or null.

See Also:
ULocale
Status:
Internal. This API is ICU internal only.

actualLocale

ULocale actualLocale
The locale containing data used to construct this object, or null.

See Also:
ULocale
Status:
Internal. This API is ICU internal only.

Class com.ibm.icu.text.MeasureFormat extends UFormat implements Serializable

serialVersionUID: -7182021401701778240l

Class com.ibm.icu.text.MessageFormat extends UFormat implements Serializable

serialVersionUID: 7136212545847378651l

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
After reading an object from the input stream, do a simple verification to maintain class invariants.

Throws:
java.io.InvalidObjectException - if the objects read from the stream is invalid.
java.io.IOException
java.lang.ClassNotFoundException
Serialized Fields

locale

java.util.Locale locale
The locale to use for formatting numbers and dates. This is no longer used, and here only for serialization compatibility.

 

ulocale

ULocale ulocale
The locale to use for formatting numbers and dates.

 

pattern

java.lang.String pattern
The string that the formatted values are to be plugged into. In other words, this is the pattern supplied on construction with all of the {} expressions taken out.

 

formats

java.text.Format[] formats
An array of formatters, which are used to format the arguments.

 

offsets

int[] offsets
The positions where the results of formatting each argument are to be inserted into the pattern.

 

argumentNumbers

int[] argumentNumbers
The argument numbers corresponding to each formatter. (The formatters are stored in the order they occur in the pattern, not in the order in which the arguments are specified.)

 

maxOffset

int maxOffset
One less than the number of entries in offsets. Can also be thought of as the index of the highest-numbered element in offsets that is being used. All of these arrays should have the same number of elements being used as offsets does, and so this variable suffices to tell us how many entries are in all of them.

 

Class com.ibm.icu.text.NumberFormat extends UFormat implements Serializable

serialVersionUID: -2308460125733713944l

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
First, read in the default serializable data. Then, if serialVersionOnStream is less than 1, indicating that the stream was written by JDK 1.1, set the int fields such as maximumIntegerDigits to be equal to the byte fields such as maxIntegerDigits, since the int fields were not present in JDK 1.1. Finally, set serialVersionOnStream back to the maximum allowed value so that default serialization will work properly if this object is streamed out again.


writeObject

private void writeObject(java.io.ObjectOutputStream stream)
                  throws java.io.IOException
Write out the default serializable data, after first setting the byte fields such as maxIntegerDigits to be equal to the int fields such as maximumIntegerDigits (or to Byte.MAX_VALUE, whichever is smaller), for compatibility with the JDK 1.1 version of the stream format.

Serialized Fields

groupingUsed

boolean groupingUsed
True if the the grouping (i.e. thousands) separator is used when formatting and parsing numbers.

 
See Also:
NumberFormat.isGroupingUsed()

maxIntegerDigits

byte maxIntegerDigits
The maximum number of digits allowed in the integer portion of a number. maxIntegerDigits must be greater than or equal to minIntegerDigits.

Note: This field exists only for serialization compatibility with JDK 1.1. In JDK 1.2 and higher, the new int field maximumIntegerDigits is used instead. When writing to a stream, maxIntegerDigits is set to maximumIntegerDigits or Byte.MAX_VALUE, whichever is smaller. When reading from a stream, this field is used only if serialVersionOnStream is less than 1.

 
See Also:
NumberFormat.getMaximumIntegerDigits()

minIntegerDigits

byte minIntegerDigits
The minimum number of digits allowed in the integer portion of a number. minimumIntegerDigits must be less than or equal to maximumIntegerDigits.

Note: This field exists only for serialization compatibility with JDK 1.1. In JDK 1.2 and higher, the new int field minimumIntegerDigits is used instead. When writing to a stream, minIntegerDigits is set to minimumIntegerDigits or Byte.MAX_VALUE, whichever is smaller. When reading from a stream, this field is used only if serialVersionOnStream is less than 1.

 
See Also:
NumberFormat.getMinimumIntegerDigits()

maxFractionDigits

byte maxFractionDigits
The maximum number of digits allowed in the fractional portion of a number. maximumFractionDigits must be greater than or equal to minimumFractionDigits.

Note: This field exists only for serialization compatibility with JDK 1.1. In JDK 1.2 and higher, the new int field maximumFractionDigits is used instead. When writing to a stream, maxFractionDigits is set to maximumFractionDigits or Byte.MAX_VALUE, whichever is smaller. When reading from a stream, this field is used only if serialVersionOnStream is less than 1.

 
See Also:
NumberFormat.getMaximumFractionDigits()

minFractionDigits

byte minFractionDigits
The minimum number of digits allowed in the fractional portion of a number. minimumFractionDigits must be less than or equal to maximumFractionDigits.

Note: This field exists only for serialization compatibility with JDK 1.1. In JDK 1.2 and higher, the new int field minimumFractionDigits is used instead. When writing to a stream, minFractionDigits is set to minimumFractionDigits or Byte.MAX_VALUE, whichever is smaller. When reading from a stream, this field is used only if serialVersionOnStream is less than 1.

 
See Also:
NumberFormat.getMinimumFractionDigits()

parseIntegerOnly

boolean parseIntegerOnly
True if this format will parse numbers as integers only.

 
See Also:
NumberFormat.isParseIntegerOnly()

maximumIntegerDigits

int maximumIntegerDigits
The maximum number of digits allowed in the integer portion of a number. maximumIntegerDigits must be greater than or equal to minimumIntegerDigits.

 
See Also:
NumberFormat.getMaximumIntegerDigits()

minimumIntegerDigits

int minimumIntegerDigits
The minimum number of digits allowed in the integer portion of a number. minimumIntegerDigits must be less than or equal to maximumIntegerDigits.

 
See Also:
NumberFormat.getMinimumIntegerDigits()

maximumFractionDigits

int maximumFractionDigits
The maximum number of digits allowed in the fractional portion of a number. maximumFractionDigits must be greater than or equal to minimumFractionDigits.

 
See Also:
NumberFormat.getMaximumFractionDigits()

minimumFractionDigits

int minimumFractionDigits
The minimum number of digits allowed in the fractional portion of a number. minimumFractionDigits must be less than or equal to maximumFractionDigits.

 
See Also:
NumberFormat.getMinimumFractionDigits()

currency

Currency currency
Currency object used to format currencies. Subclasses may ignore this if they are not currency formats. This will be null unless a subclass sets it to a non-null value.

Since:
ICU 2.6

serialVersionOnStream

int serialVersionOnStream
Describes the version of NumberFormat present on the stream. Possible values are: When streaming out a NumberFormat, the most recent format (corresponding to the highest allowable serialVersionOnStream) is always written.

 

Class com.ibm.icu.text.RuleBasedNumberFormat extends NumberFormat implements Serializable

serialVersionUID: -7664252765575395068l

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Reads this object in from a stream.


writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException
Writes this object to a stream.

Serialized Fields

locale

ULocale locale
The formatter's locale. This is used to create DecimalFormatSymbols and Collator objects.

 

lenientParse

boolean lenientParse
Flag specifying whether lenient parse mode is on or off. Off by default.

 

ruleSetDisplayNames

java.util.Map ruleSetDisplayNames
Localizations for rule set names.

 

publicRuleSetNames

java.lang.String[] publicRuleSetNames
The public rule set names;

 

Class com.ibm.icu.text.SimpleDateFormat extends DateFormat implements Serializable

serialVersionUID: 4774881970558875024l

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Override readObject.

Serialized Fields

serialVersionOnStream

int serialVersionOnStream
The version of the serialized data on the stream. Possible values: When streaming out this class, the most recent format and the highest allowable serialVersionOnStream is written.

 

pattern

java.lang.String pattern
The pattern string of this formatter. This is always a non-localized pattern. May not be null. See class documentation for details.

 

formatData

DateFormatSymbols formatData
The symbols used by this formatter for week names, month names, etc. May not be null.

 
See Also:
DateFormatSymbols

defaultCenturyStart

java.util.Date defaultCenturyStart
We map dates with two-digit years into the century starting at defaultCenturyStart, which may be any date. May not be null.

 
Since:
JDK1.1.4

decimalBuf

char[] decimalBuf

Class com.ibm.icu.text.StringPrepParseException extends java.text.ParseException implements Serializable

serialVersionUID: 7160264827701651255l

Serialized Fields

error

int error

line

int line
The line on which the error occured. If the parse engine is not using this field, it should set it to zero. Otherwise it should be a positive integer. The default value of this field is -1. It will be set to 0 if the code populating this struct is not using line numbers.

Status:
Stable ICU 2.8.

preContext

java.lang.StringBuffer preContext
Textual context before the error. Null-terminated. May be the empty string if not implemented by parser.

Status:
Stable ICU 2.8.

postContext

java.lang.StringBuffer postContext
Textual context after the error. Null-terminated. May be the empty string if not implemented by parser.

Status:
Stable ICU 2.8.

Class com.ibm.icu.text.UFormat extends java.text.Format implements Serializable

serialVersionUID: -4964390515840164416l

Serialized Fields

validLocale

ULocale validLocale
The most specific locale containing any resource data, or null.

See Also:
ULocale
Status:
Internal. This API is ICU internal only.

actualLocale

ULocale actualLocale
The locale containing data used to construct this object, or null.

See Also:
ULocale
Status:
Internal. This API is ICU internal only.


Package com.ibm.icu.util

Class com.ibm.icu.util.BuddhistCalendar extends GregorianCalendar implements Serializable

serialVersionUID: 2583005278132380631l

Class com.ibm.icu.util.Calendar extends java.lang.Object implements Serializable

serialVersionUID: 6222646104888790989l

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Reconstitute this object from a stream (i.e., deserialize it).


writeObject

private void writeObject(java.io.ObjectOutputStream stream)
                  throws java.io.IOException
Save the state of this object to a stream (i.e., serialize it). Ideally, Calendar would only write out its state data and the current time, and not write any field data out, such as fields[], isTimeSet, areFieldsSet, and isSet[]. nextStamp also should not be part of the persistent state. Unfortunately, this didn't happen before JDK 1.1 shipped. To be compatible with JDK 1.1, we will always have to write out the field values and state flags. However, nextStamp can be removed from the serialization stream; this will probably happen in the near future.

Serialized Fields

time

long time
The currently set time for this calendar, expressed in milliseconds after January 1, 1970, 0:00:00 GMT.

 
See Also:
isTimeSet

lenient

boolean lenient
True if this calendar allows out-of-range field values during computation of time from fields[].

 
See Also:
Calendar.setLenient(boolean)

zone

TimeZone zone
The TimeZone used by this calendar. Calendar uses the time zone data to translate between locale and GMT time.

 

firstDayOfWeek

int firstDayOfWeek
The first day of the week, with possible values SUNDAY, MONDAY, etc. This is a locale-dependent value.

 

minimalDaysInFirstWeek

int minimalDaysInFirstWeek
The number of days required for the first week in a month or year, with possible values from 1 to 7. This is a locale-dependent value.

 

weekendOnset

int weekendOnset
First day of the weekend in this calendar's locale. Must be in the range SUNDAY...SATURDAY (1..7). The weekend starts at weekendOnsetMillis milliseconds after midnight on that day of the week. This value is taken from locale resource data.


weekendOnsetMillis

int weekendOnsetMillis
Milliseconds after midnight at which the weekend starts on the day of the week weekendOnset. Times that are greater than or equal to weekendOnsetMillis are considered part of the weekend. Must be in the range 0..24*60*60*1000-1. This value is taken from locale resource data.


weekendCease

int weekendCease
Day of the week when the weekend stops in this calendar's locale. Must be in the range SUNDAY...SATURDAY (1..7). The weekend stops at weekendCeaseMillis milliseconds after midnight on that day of the week. This value is taken from locale resource data.


weekendCeaseMillis

int weekendCeaseMillis
Milliseconds after midnight at which the weekend stops on the day of the week weekendCease. Times that are greater than or equal to weekendCeaseMillis are considered not to be the weekend. Must be in the range 0..24*60*60*1000-1. This value is taken from locale resource data.


validLocale

ULocale validLocale
The most specific locale containing any resource data, or null.

See Also:
ULocale
Status:
Internal. This API is ICU internal only.

actualLocale

ULocale actualLocale
The locale containing data used to construct this object, or null.

See Also:
ULocale
Status:
Internal. This API is ICU internal only.

Class com.ibm.icu.util.ChineseCalendar extends Calendar implements Serializable

serialVersionUID: 7312110751940929420l

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream stream)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Override readObject.

Class com.ibm.icu.util.CopticCalendar extends com.ibm.icu.util.CECalendar implements Serializable

serialVersionUID: 5903818751846742911l

Class com.ibm.icu.util.Currency extends MeasureUnit implements Serializable

serialVersionUID: -5839973855554750484l

Serialized Fields

isoCode

java.lang.String isoCode
ISO 4217 3-letter code.


validLocale

ULocale validLocale
The most specific locale containing any resource data, or null.

See Also:
ULocale
Status:
Internal. This API is ICU internal only.

actualLocale

ULocale actualLocale
The locale containing data used to construct this object, or null.

See Also:
ULocale
Status:
Internal. This API is ICU internal only.

Class com.ibm.icu.util.EthiopicCalendar extends com.ibm.icu.util.CECalendar implements Serializable

serialVersionUID: -2438495771339315608l

Class com.ibm.icu.util.GregorianCalendar extends Calendar implements Serializable

serialVersionUID: 9199388694351062137l

Serialized Fields

gregorianCutover

long gregorianCutover
The point at which the Gregorian calendar rules are used, measured in milliseconds from the standard epoch. Default is October 15, 1582 (Gregorian) 00:00:00 UTC or -12219292800000L. For this value, October 4, 1582 (Julian) is followed by October 15, 1582 (Gregorian). This corresponds to Julian day number 2299161.

 

Class com.ibm.icu.util.HebrewCalendar extends Calendar implements Serializable

serialVersionUID: -1952524560588825816l

Class com.ibm.icu.util.IslamicCalendar extends Calendar implements Serializable

serialVersionUID: -6253365474073869325l

Serialized Fields

civil

boolean civil
true if this object uses the fixed-cycle Islamic civil calendar, and false if it approximates the true religious calendar using astronomical calculations for the time of the new moon.

 

Class com.ibm.icu.util.JapaneseCalendar extends GregorianCalendar implements Serializable

serialVersionUID: -2977189902603704691l

Class com.ibm.icu.util.SimpleTimeZone extends com.ibm.icu.impl.JDKTimeZone implements Serializable

serialVersionUID: -7034676239311322769l

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Returns the java.util.SimpleTimeZone that this class wraps. java.util.SimpleTimeZone unwrapSTZ() { return (java.util.SimpleTimeZone) unwrap(); }

Serialized Fields

monthLength

byte[] monthLength

raw

int raw

dst

int dst

xinfo

STZInfo xinfo

startMonth

int startMonth

startDay

int startDay

startDayOfWeek

int startDayOfWeek

startTime

int startTime

startTimeMode

int startTimeMode

endTimeMode

int endTimeMode

endMonth

int endMonth

endDay

int endDay

endDayOfWeek

int endDayOfWeek

endTime

int endTime

startYear

int startYear

useDaylight

boolean useDaylight

startMode

int startMode

endMode

int endMode

Class com.ibm.icu.util.TimeZone extends java.lang.Object implements Serializable

serialVersionUID: -744942128318337471l

Serialized Fields

ID

java.lang.String ID
The string identifier of this TimeZone. This is a programmatic identifier used internally to look up TimeZone objects from the system table and also to map them to their localized display names. ID values are unique in the system table but may not be for dynamically created zones.

 

Class com.ibm.icu.util.ULocale extends java.lang.Object implements Serializable

serialVersionUID: 3715177670352309217l

Serialized Fields

localeID

java.lang.String localeID
The raw localeID that we were passed in.

Class com.ibm.icu.util.UResourceTypeMismatchException extends java.lang.RuntimeException implements Serializable

serialVersionUID: 1286569061095434541l



Copyright (c) 2006 IBM Corporation and others.