org.jcon.text
Class AlphanumericPicture
java.lang.Object
org.jcon.text.FixedLengthFieldPicture
org.jcon.text.AlphanumericPicture
- All Implemented Interfaces:
- java.io.Serializable
public class AlphanumericPicture
- extends FixedLengthFieldPicture
A "picture", or format description, for an alphanumeric 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. |
boolean |
getRightJustify()
|
void |
setRightJustify(boolean tizit)
|
java.lang.Object |
unformat(java.lang.String fieldContents)
Return the string corresponding to the alphanumeric contents of the
provided field. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlphanumericPicture
public AlphanumericPicture()
AlphanumericPicture
public AlphanumericPicture(int length)
format
public char[] format(java.lang.Object value)
- Return a character array holding the formatted value corresponding to the
provided object.
- Specified by:
format in class FixedLengthFieldPicture
unformat
public java.lang.Object unformat(java.lang.String fieldContents)
- Return the string corresponding to the alphanumeric contents of the
provided field.
- Specified by:
unformat in class FixedLengthFieldPicture
getRightJustify
public boolean getRightJustify()
setRightJustify
public void setRightJustify(boolean tizit)