Serialized Form


Package com.ibm.math

Class com.ibm.math.BigDecimal implements Serializable

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.math.DiagBigDecimal.DiagException implements Serializable

Class com.ibm.math.MathContext implements Serializable

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

Class com.ibm.richtext.awtui.MessageDialog implements Serializable

Class com.ibm.richtext.awtui.TabRuler implements Serializable

Serialized Fields

fImpl

TabRulerImpl fImpl

Class com.ibm.richtext.awtui.TextFrame implements Serializable

Serialized Fields

fTextPanel

TextPanel fTextPanel


Package com.ibm.richtext.styledtext

Class com.ibm.richtext.styledtext.StandardTabRuler implements Serializable

Serialization Methods

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException

Class com.ibm.richtext.styledtext.StyledText implements Serializable

Serialization Methods

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException

Class com.ibm.richtext.styledtext.TabStop implements Serializable

Serialization Methods

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException


Package com.ibm.richtext.swingui

Class com.ibm.richtext.swingui.JMessageDialog implements Serializable

Class com.ibm.richtext.swingui.JTabRuler implements Serializable

Serialized Fields

fImpl

TabRulerImpl fImpl

Class com.ibm.richtext.swingui.JTextFrame implements Serializable

Serialized Fields

fTextPanel

JTextPanel fTextPanel


Package com.ibm.richtext.textpanel

Class com.ibm.richtext.textpanel.JTextPanel implements Serializable

Serialized Fields

fImpl

com.ibm.richtext.textpanel.ATextPanelImpl fImpl

Class com.ibm.richtext.textpanel.TextPanel implements Serializable

Serialized Fields

fImpl

com.ibm.richtext.textpanel.ATextPanelImpl fImpl

Class com.ibm.richtext.textpanel.TextPanelEvent implements Serializable

Serialized Fields

fId

int fId

Class com.ibm.richtext.textpanel.TextPanelSettings implements Serializable

Serialized Fields

fScrollable

boolean fScrollable

fScrollBarsVisible

boolean fScrollBarsVisible

fSelectable

boolean fSelectable

fEditable

boolean fEditable

fWraps

boolean fWraps

fDefaultValues

AttributeMap fDefaultValues


Package com.ibm.text

Class com.ibm.text.ArabicShapingException implements Serializable

Class com.ibm.text.ChineseDateFormat implements Serializable

Class com.ibm.text.ChineseDateFormatSymbols implements Serializable

Serialized Fields

isLeapMonth

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

Class com.ibm.text.DateFormat implements Serializable

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.text.DateFormatSymbols implements Serializable

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.
 

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.
 

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.
 

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. 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:
DateFormatZoneData, 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.
 

Class com.ibm.text.DecimalFormat implements Serializable

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

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.text.DecimalFormatSymbols), DecimalFormatSymbols

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.text.DecimalFormatSymbols implements Serializable

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()

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

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.
 

Class com.ibm.text.NumberFormat implements Serializable

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()

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.text.RuleBasedNumberFormat implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException
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

ruleSets

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

defaultRuleSet

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

locale

java.util.Locale locale
The formatter's locale. This is used to create DecimalFormatSymbols and Collator objects.

collator

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

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

Class com.ibm.text.SimpleDateFormat implements Serializable

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.
 
Since:
JDK1.1.4

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


Package com.ibm.textlayout.attributes

Class com.ibm.textlayout.attributes.AttributeMap implements Serializable

Serialization Methods

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException

Class com.ibm.textlayout.attributes.TextAttribute implements Serializable


Package com.ibm.util

Class com.ibm.util.BuddhistCalendar implements Serializable

Class com.ibm.util.Calendar implements Serializable

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.

Class com.ibm.util.ChineseCalendar implements Serializable

Class com.ibm.util.GregorianCalendar 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.util.HebrewCalendar implements Serializable

Class com.ibm.util.IslamicCalendar implements Serializable

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.util.JapaneseCalendar implements Serializable

Class com.ibm.util.SimpleTimeZone implements Serializable

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). We handle both JDK 1.1 binary formats and full formats with a packed byte array.

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).
Serial Data:
We write out two formats, a JDK 1.1 compatible format, using DOW_IN_MONTH_MODE rules, in the required section, followed by the full rules, in packed format, in the optional section. The optional section will be ignored by JDK 1.1 code upon stream in.

Contents of the optional section: The length of a byte array is emitted (int); this is 4 as of this release. The byte array of the given length is emitted. The contents of the byte array are the true values of the fields startDay, startDayOfWeek, endDay, and endDayOfWeek. The values of these fields in the required section are approximate values suited to the rule mode DOW_IN_MONTH_MODE, which is the only mode recognized by JDK 1.1.

Serialized Fields

startMonth

int startMonth
The month in which daylight savings time starts. This value must be between Calendar.JANUARY and Calendar.DECEMBER inclusive. This value must not equal endMonth.

If useDaylight is false, this value is ignored.

 

startDay

int startDay
This field has two possible interpretations:
startMode == DOW_IN_MONTH
startDay indicates the day of the month of startMonth on which daylight savings time starts, from 1 to 28, 30, or 31, depending on the startMonth.
startMode != DOW_IN_MONTH
startDay indicates which startDayOfWeek in th month startMonth daylight savings time starts on. For example, a value of +1 and a startDayOfWeek of Calendar.SUNDAY indicates the first Sunday of startMonth. Likewise, +2 would indicate the second Sunday, and -1 the last Sunday. A value of 0 is illegal.

If useDaylight is false, this value is ignored.

 

startDayOfWeek

int startDayOfWeek
The day of the week on which daylight savings time starts. This value must be between Calendar.SUNDAY and Calendar.SATURDAY inclusive.

If useDaylight is false or startMode == DAY_OF_MONTH, this value is ignored.

 

startTime

int startTime
The time in milliseconds after midnight at which daylight savings time starts. This value is expressed as wall time, standard time, or UTC time, depending on the setting of startTimeMode.

If useDaylight is false, this value is ignored.

 

startTimeMode

int startTimeMode
The format of startTime, either WALL_TIME, STANDARD_TIME, or UTC_TIME.
 
Since:
JDK 1.3

endMonth

int endMonth
The month in which daylight savings time ends. This value must be between Calendar.JANUARY and Calendar.UNDECIMBER. This value must not equal startMonth.

If useDaylight is false, this value is ignored.

 

endDay

int endDay
This field has two possible interpretations:
endMode == DOW_IN_MONTH
endDay indicates the day of the month of endMonth on which daylight savings time ends, from 1 to 28, 30, or 31, depending on the endMonth.
endMode != DOW_IN_MONTH
endDay indicates which endDayOfWeek in th month endMonth daylight savings time ends on. For example, a value of +1 and a endDayOfWeek of Calendar.SUNDAY indicates the first Sunday of endMonth. Likewise, +2 would indicate the second Sunday, and -1 the last Sunday. A value of 0 is illegal.

If useDaylight is false, this value is ignored.

 

endDayOfWeek

int endDayOfWeek
The day of the week on which daylight savings time ends. This value must be between Calendar.SUNDAY and Calendar.SATURDAY inclusive.

If useDaylight is false or endMode == DAY_OF_MONTH, this value is ignored.

 

endTime

int endTime
The time in milliseconds after midnight at which daylight savings time ends. This value is expressed as wall time, standard time, or UTC time, depending on the setting of endTimeMode.

If useDaylight is false, this value is ignored.

 

endTimeMode

int endTimeMode
The format of endTime, either WALL_TIME, STANDARD_TIME, or UTC_TIME.
 
Since:
JDK 1.3

startYear

int startYear
The year in which daylight savings time is first observed. This is an AD value. If this value is less than 1 then daylight savings is observed for all AD years.

If useDaylight is false, this value is ignored.

 

rawOffset

int rawOffset
The offset in milliseconds between this zone and GMT. Negative offsets are to the west of Greenwich. To obtain local standard time, add the offset to GMT time. To obtain local wall time it may also be necessary to add dstSavings.
 

useDaylight

boolean useDaylight
A boolean value which is true if and only if this zone uses daylight savings time. If this value is false, several other fields are ignored.
 

monthLength

byte[] monthLength
This field was serialized in JDK 1.1, so we have to keep it that way to maintain serialization compatibility. However, there's no need to recreate the array each time we create a new time zone.
An array of bytes containing the values {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}. This is ignored as of the Java 2 platform v1.2, however, it must be streamed out for compatibility with JDK 1.1.

startMode

int startMode
Variables specifying the mode of the start rule. Takes the following values:
DOM_MODE
Exact day of week; e.g., March 1.
DOW_IN_MONTH_MODE
Day of week in month; e.g., last Sunday in March.
DOW_GE_DOM_MODE
Day of week after day of month; e.g., Sunday on or after March 15.
DOW_LE_DOM_MODE
Day of week before day of month; e.g., Sunday on or before March 15.
The setting of this field affects the interpretation of the startDay field.

If useDaylight is false, this value is ignored.

 
Since:
JDK1.1.4

endMode

int endMode
Variables specifying the mode of the end rule. Takes the following values:
DOM_MODE
Exact day of week; e.g., March 1.
DOW_IN_MONTH_MODE
Day of week in month; e.g., last Sunday in March.
DOW_GE_DOM_MODE
Day of week after day of month; e.g., Sunday on or after March 15.
DOW_LE_DOM_MODE
Day of week before day of month; e.g., Sunday on or before March 15.
The setting of this field affects the interpretation of the endDay field.

If useDaylight is false, this value is ignored.

 
Since:
JDK1.1.4

dstSavings

int dstSavings
A positive value indicating the amount of time saved during DST in milliseconds. Typically one hour (3600000); sometimes 30 minutes (1800000).

If useDaylight is false, this value is ignored.

 
Since:
JDK1.1.4

serialVersionOnStream

int serialVersionOnStream
The version of the serialized data on the stream. Possible values:
0 or not present on stream
JDK 1.1.3 or earlier.
1
JDK 1.1.4 or later. Includes three new fields: startMode, endMode, and dstSavings.
2
JDK 1.3 or later. Includes two new fields: startTimeMode and endTimeMode.
When streaming out this class, the most recent format and the highest allowable serialVersionOnStream is written.
 
Since:
JDK1.1.4

Class com.ibm.util.SimpleTimeZoneAdapter implements Serializable

Serialized Fields

zone

SimpleTimeZone zone
The contained com.ibm.util.SimpleTimeZone object. We delegate all methods to this object.

Class com.ibm.util.TimeZone implements Serializable

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.
 



Copyright (c) 2001 IBM Corporation and others.