gnu.lists
Class AbstractFormat
java.lang.Object
java.text.Format
gnu.lists.AbstractFormat
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- DisplayFormat, XMLFormat
public abstract class AbstractFormat
- extends java.text.Format
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.text.Format |
java.text.Format.Field |
Method Summary |
void |
beginGroup(java.lang.String typeName,
java.lang.Object type,
Consumer out)
|
void |
endGroup(java.lang.String typeName,
Consumer out)
|
void |
format(java.lang.Object value,
Consumer out)
|
java.lang.StringBuffer |
format(java.lang.Object val,
java.lang.StringBuffer sbuf,
java.text.FieldPosition fpos)
|
java.lang.Object |
parseObject(java.lang.String text,
java.text.ParsePosition status)
|
protected void |
write(java.lang.String str,
Consumer out)
|
void |
writeBoolean(boolean v,
Consumer out)
|
void |
writeChar(int v,
Consumer out)
|
void |
writeInt(int i,
Consumer out)
Write an int. |
void |
writeLong(long v,
Consumer out)
Write a long. |
abstract void |
writeObject(java.lang.Object v,
Consumer out)
|
void |
writeObject(java.lang.Object obj,
PrintConsumer out)
|
void |
writeObject(java.lang.Object obj,
java.io.Writer out)
|
Methods inherited from class java.text.Format |
clone, format, formatToCharacterIterator, parseObject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractFormat
public AbstractFormat()
write
protected void write(java.lang.String str,
Consumer out)
writeChar
public void writeChar(int v,
Consumer out)
writeLong
public void writeLong(long v,
Consumer out)
- Write a long.
The default is to call writeLong on teh Consumer.
writeInt
public void writeInt(int i,
Consumer out)
- Write an int.
The default is to call writeLong, so sub-classes only need to
override the latter.
writeBoolean
public void writeBoolean(boolean v,
Consumer out)
beginGroup
public void beginGroup(java.lang.String typeName,
java.lang.Object type,
Consumer out)
endGroup
public void endGroup(java.lang.String typeName,
Consumer out)
writeObject
public abstract void writeObject(java.lang.Object v,
Consumer out)
format
public void format(java.lang.Object value,
Consumer out)
writeObject
public final void writeObject(java.lang.Object obj,
PrintConsumer out)
writeObject
public final void writeObject(java.lang.Object obj,
java.io.Writer out)
format
public java.lang.StringBuffer format(java.lang.Object val,
java.lang.StringBuffer sbuf,
java.text.FieldPosition fpos)
- Specified by:
format
in class java.text.Format
parseObject
public java.lang.Object parseObject(java.lang.String text,
java.text.ParsePosition status)
- Specified by:
parseObject
in class java.text.Format