|
Tea Java Runtime API Version 3.2.5 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.pdmfc.tea.util.SFormater
public abstract class SFormater
Implements string formating with printf style formats.
This is an abstract class. Derived classes should implement the
, append(char) methods.
append(String)
| Constructor Summary | |
|---|---|
SFormater()
Initializes the object internal state. |
|
| Method Summary | |
|---|---|
protected abstract void |
append(char c)
Appends a char to the formated result so far. |
protected abstract void |
append(java.lang.String s)
Appends a string to the formated result so far. |
void |
format(java.lang.String fmtString,
java.lang.Object[] args,
int firstArg)
Creates the formated string by sucessive calls to the append() method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SFormater()
| Method Detail |
|---|
protected abstract void append(java.lang.String s)
This is an abstract method and must be implemented in a derived class.
s - The string to be appended.protected abstract void append(char c)
This is an abstract method and must be implemented in a derived class.
c - The char to be appended.
public final void format(java.lang.String fmtString,
java.lang.Object[] args,
int firstArg)
throws SNumArgException,
STypeException
fmtString - The printf like format string.args - Array with the objects to be formated.firstArg - Index into the args array pointing to the
first of the objects to be formated.
SNumArgException - Thrown if there were not enough
arguments acording to the format string.
STypeException - Thrown if some of the arguments was of a
type not expected by the format string.
|
Tea Java Runtime API Version 3.2.5 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||