oracle.cabo.share.nls
Class MutableDateFormatContext
java.lang.Object
|
+--oracle.cabo.share.nls.DateFormatContext
|
+--oracle.cabo.share.nls.MutableDateFormatContext
- All Implemented Interfaces:
- java.lang.Cloneable
- public final class MutableDateFormatContext
- extends DateFormatContext
The MutableDateFormatContext class contains all date format parameters,
which can be changed again after initialisation.
Method Summary |
int |
getTwoDigitYearStart()
Returns the default offset to use during parse for dates with only two
digit years. |
boolean |
isLenient()
Returns whether the DateFormat should accept derived patterns during
parsing, allowing:
01/13/99 --> 13-Jan-99
03/Oct/99 --> 03-Oct-99
03.Oct.99 --> 03-Oct-99 |
void |
setLenient(boolean lenient)
Sets whether the DateFormat should accept derived patterns during
parsing, allowing:
01/13/99 --> 13-Jan-99
03/Oct/99 --> 03-Oct-99
03.Oct.99 --> 03-Oct-99 |
void |
setTwoDigitYearStart(int twoDigitYearStart)
Sets the default offset to use during parse for dates with only two
digit years. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
MutableDateFormatContext
public MutableDateFormatContext(DateFormatContext dfc)
getTwoDigitYearStart
public int getTwoDigitYearStart()
- Returns the default offset to use during parse for dates with only two
digit years.
- Overrides:
getTwoDigitYearStart
in class DateFormatContext
isLenient
public boolean isLenient()
- Returns whether the DateFormat should accept derived patterns during
parsing, allowing:
01/13/99 --> 13-Jan-99
03/Oct/99 --> 03-Oct-99
03.Oct.99 --> 03-Oct-99
- Overrides:
isLenient
in class DateFormatContext
setLenient
public void setLenient(boolean lenient)
- Sets whether the DateFormat should accept derived patterns during
parsing, allowing:
01/13/99 --> 13-Jan-99
03/Oct/99 --> 03-Oct-99
03.Oct.99 --> 03-Oct-99
setTwoDigitYearStart
public void setTwoDigitYearStart(int twoDigitYearStart)
- Sets the default offset to use during parse for dates with only two
digit years.