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
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 |
endAttribute(Consumer out)
|
void |
endElement(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)
|
void |
startAttribute(java.lang.Object attrType,
Consumer out)
|
void |
startElement(java.lang.Object type,
Consumer out)
|
void |
write(int v,
Consumer out)
|
protected void |
write(java.lang.String str,
Consumer out)
|
void |
writeBoolean(boolean 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)
write
public void write(int v,
Consumer out)
writeLong
public void writeLong(long v,
Consumer out)
- Write a long.
The default is to call writeLong on the 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)
startElement
public void startElement(java.lang.Object type,
Consumer out)
endElement
public void endElement(Consumer out)
startAttribute
public void startAttribute(java.lang.Object attrType,
Consumer out)
endAttribute
public void endAttribute(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