Serialized Form


Package com.ibm.icu.math

Class com.ibm.icu.math.BigDecimal extends 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 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 Exception implements Serializable

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

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

Serialized Fields

isLeapMonth

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.

 

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.

 

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

serialVersionUID: -5987973545549424702L

Serialized Fields

eras

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

 

months

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

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.

 

weekdays

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

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.

 

ampms

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

 

zoneStrings

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. 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

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.

 

validLocale

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

See Also:
ULocale

actualLocale

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

See Also:
ULocale

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

serialVersionUID: 864413376551465018L

Serialization Methods

readObject

private void readObject(ObjectInputStream stream)
                 throws IOException,
                        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.

Throws:
IOException
ClassNotFoundException
Serialized Fields

positivePrefix

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

 
See Also:
DecimalFormat.getPositivePrefix()

positiveSuffix

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

 
See Also:
DecimalFormat.getPositiveSuffix()

negativePrefix

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

 
See Also:
DecimalFormat.getNegativePrefix()

negativeSuffix

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

 
See Also:
DecimalFormat.getNegativeSuffix()

posPrefixPattern

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

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

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

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

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

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 Object implements Serializable

serialVersionUID: 5772796243397350300L

Serialization Methods

readObject

private void readObject(ObjectInputStream stream)
                 throws IOException,
                        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.

Throws:
IOException
ClassNotFoundException
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

String infinity
Character used to represent infinity.

 
See Also:
DecimalFormatSymbols.getInfinity()

NaN

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

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

 
See Also:
DecimalFormatSymbols.getCurrencySymbol()

intlCurrencySymbol

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

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

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

actualLocale

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

See Also:
ULocale

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

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

Serialization Methods

readObject

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

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

locale

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

 

ulocale

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

 

pattern

String pattern
Deprecated. 
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

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

 

offsets

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

 

argumentNumbers

int[] argumentNumbers
Deprecated. 
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
Deprecated. 
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(ObjectInputStream stream)
                 throws IOException,
                        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.

Throws:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream stream)
                  throws 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.

Throws:
IOException
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

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException
Reads this object in from a stream.

Throws:
IOException

writeObject

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

Throws:
IOException
Serialized Fields

ruleSets

com.ibm.icu.text.NFRuleSet[] ruleSets
The formatter's rule sets.


defaultRuleSet

com.ibm.icu.text.NFRuleSet defaultRuleSet
A pointer to the formatter's default rule set. This is always included in ruleSets.


locale

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


collator

Collator collator
Collator to be used in lenient parsing. This variable is lazy-evaluated: the collator is actually created the first time the client does a parse with lenient-parse mode turned on.


decimalFormatSymbols

DecimalFormatSymbols decimalFormatSymbols
The DecimalFormatSymbols object that any DecimalFormat objects this formatter uses should use. This variable is lazy-evaluated: it isn't filled in if the rule set never uses a DecimalFormat pattern.


lenientParse

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


lenientParseRules

String lenientParseRules
If the description specifies lenient-parse rules, they're stored here until the collator is created.


postProcessRules

String postProcessRules
If the description specifies post-process rules, they're stored here until post-processing is required.


postProcessor

com.ibm.icu.text.RBNFPostProcessor postProcessor
Post processor lazily constructed from the postProcessRules.


ruleSetDisplayNames

Map ruleSetDisplayNames
Localizations for rule set names.


publicRuleSetNames

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(ObjectInputStream stream)
                 throws IOException,
                        ClassNotFoundException
Override readObject.

Throws:
IOException
ClassNotFoundException
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

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

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

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

Serialized Fields

error

int error
Deprecated. 

line

int line
Deprecated. This is a draft API and might change in a future release of ICU.
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.


preContext

StringBuffer preContext
Deprecated. This is a draft API and might change in a future release of ICU.
Textual context before the error. Null-terminated. May be the empty string if not implemented by parser.


postContext

StringBuffer postContext
Deprecated. This is a draft API and might change in a future release of ICU.
Textual context after the error. Null-terminated. May be the empty string if not implemented by parser.

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

Serialized Fields

validLocale

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

See Also:
ULocale

actualLocale

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

See Also:
ULocale

Package com.ibm.icu.util

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

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

Serialization Methods

readObject

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

Throws:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream stream)
                  throws 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.

Throws:
IOException
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

actualLocale

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

See Also:
ULocale

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

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

Serialized Fields

isoCode

String isoCode
ISO 4217 3-letter code.


validLocale

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

See Also:
ULocale

actualLocale

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

See Also:
ULocale

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

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

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

Serialized Fields

civil

boolean civil
Deprecated. 
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

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

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

Serialized Fields

ID

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 Object implements Serializable

Serialized Fields

localeID

String localeID
Deprecated. 
The raw localeID that we were passed in.

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

Serialized Fields

message

String message
Deprecated. 



Copyright (c) 2004 IBM Corporation and others.