| In addition to its superclass DateFormatter, this class converts
to/from the empty string. Therefore it holds an empty value
that is the counterpart of the empty string.
The Method #valueToString converts the empty value to the
empty string. And #stringToValue converts blank strings
to the empty value. In all other cases the conversion is delegated
to its superclass.
Often the empty value is null . As an alternative you can map
the empty string to a given date, for example epoch (January 1, 1970).
Examples:
new EmptyDateFormatter();
new EmptyDateFormatter(new Date(0));
author: Karsten Lentzsch version: $Revision: 1.4 $ See Also: java.text.Format |