org.jcon.text
Class FixedPointPicture
java.lang.Object
org.jcon.text.FixedLengthFieldPicture
org.jcon.text.FixedPointPicture
- All Implemented Interfaces:
- java.io.Serializable
public class FixedPointPicture
- extends FixedLengthFieldPicture
A "picture", or format description, for fixed-point fixed-width field.
- Author:
- Paul Reavis
- See Also:
- Serialized Form
|
Method Summary |
char[] |
format(java.lang.Object value)
Return a character array holding the formatted value corresponding to the
provided object. |
int |
getDecimalPlaces()
|
boolean |
isUnsigned()
|
void |
setDecimalPlaces(int newPlaces)
|
void |
setUnsigned(boolean tizit)
|
java.lang.Object |
unformat(java.lang.String fieldContents)
Return an object corresponding to the value of a string in this picture's
format. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FixedPointPicture
public FixedPointPicture()
format
public char[] format(java.lang.Object value)
- Return a character array holding the formatted value corresponding to the
provided object. Object must be a String or a floating-point number.
- Specified by:
format in class FixedLengthFieldPicture
unformat
public java.lang.Object unformat(java.lang.String fieldContents)
- Description copied from class:
FixedLengthFieldPicture
- Return an object corresponding to the value of a string in this picture's
format.
- Specified by:
unformat in class FixedLengthFieldPicture
getDecimalPlaces
public int getDecimalPlaces()
setDecimalPlaces
public void setDecimalPlaces(int newPlaces)
isUnsigned
public boolean isUnsigned()
setUnsigned
public void setUnsigned(boolean tizit)