|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jeospace.text.FieldAttributor
The field attributor maps a format StringBuffer's Fields to beginning and ending indices within the buffer. Once the format has completed, this information can then be called upon to initialize a FieldPosition object or to create an AttributedCharacterIterator.
This class is limited to only allowing a single attribute (the Field) per substring. The creation of this class was necessitated by the fact that potentially useful classes, constructors and methods within the java.text package were limited to package accessibility.
| Constructor Summary | |
protected |
FieldAttributor()
Protected Constructor |
| Method Summary | |
protected void |
add(java.text.Format.Field attr,
int begin,
int end)
Add a Field - index pair mapping |
void |
getFieldPosition(java.text.FieldPosition pos)
Initialize the begin and end indices of the FieldPosition object. |
java.text.AttributedCharacterIterator |
getIterator()
Return the AttributedCharacterIterator for the formatted StringBuffer |
protected void |
initialize(java.lang.StringBuffer buffer)
Initialize and reset the FieldAttributor's objects to process a new formatting StringBuffer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected FieldAttributor()
| Method Detail |
protected void initialize(java.lang.StringBuffer buffer)
protected void add(java.text.Format.Field attr,
int begin,
int end)
public void getFieldPosition(java.text.FieldPosition pos)
public java.text.AttributedCharacterIterator getIterator()
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||