[multiple changes]
2003-10-29 Mark Wielaard <mark@klomp.org> From Guilhem Lavaux <guilhem.lavaux@free.fr> * java/text/DateFormat.java (Field): New public static inner class. * java/text/Format.java (Field): Likewise. (formatToCharacterIterator): New method. * java/text/FormatCharacterIterator.java: New file. 2003-10-29 Mark Wielaard <mark@klomp.org> From Guilhem Lavaux <guilhem.lavaux@free.fr> * java/util/Currency.java: New file. 2003-10-29 Michael Koch <konqueror@gmx.de> * Makefile.am (ordinary_java_source_files): Added java/text/FormatCharacterIterator.java and java/util/Currency.java. * Makefile.in: Regenerated. From-SVN: r73046
This commit is contained in:
parent
f2225d74aa
commit
8b941eec31
8 changed files with 747 additions and 13 deletions
|
@ -38,6 +38,10 @@ exception statement from your version. */
|
|||
|
||||
package java.text;
|
||||
|
||||
import java.util.Set;
|
||||
import java.util.Map;
|
||||
import java.util.HashSet;
|
||||
import java.util.HashMap;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
|
@ -61,6 +65,16 @@ public abstract class Format implements Serializable, Cloneable
|
|||
{
|
||||
static final long serialVersionUID = 4479235611355683992L;
|
||||
|
||||
public static class Field extends AttributedCharacterIterator.Attribute
|
||||
{
|
||||
static final long serialVersionUID = 276966692217360283L;
|
||||
|
||||
public Field(String name)
|
||||
{
|
||||
super(name);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This method initializes a new instance of <code>Format</code>.
|
||||
* It performs no actions, but acts as a default constructor for
|
||||
|
@ -142,6 +156,11 @@ public abstract class Format implements Serializable, Cloneable
|
|||
*/
|
||||
public abstract Object parseObject (String str, ParsePosition pos);
|
||||
|
||||
public AttributedCharacterIterator formatToCharacterIterator(Object obj)
|
||||
{
|
||||
return new FormatCharacterIterator(format(obj), null, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a copy of this object.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue