org.jcon.text
Class NumericPicture

java.lang.Object
  extended by org.jcon.text.FixedLengthFieldPicture
      extended by org.jcon.text.NumericPicture
All Implemented Interfaces:
java.io.Serializable

public class NumericPicture
extends FixedLengthFieldPicture

A "picture", or format description, for a numeric fixed-width field.

Author:
Paul Reavis
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jcon.text.FixedLengthFieldPicture
blank
 
Constructor Summary
NumericPicture()
           
 
Method Summary
 char[] format(java.lang.Object value)
          Return a character array holding the formatted value corresponding to the provided object.
 boolean getPadWithBlanks()
          If true, pads field with blanks.
 void setPadWithBlanks(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 org.jcon.text.FixedLengthFieldPicture
getLength, setLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericPicture

public NumericPicture()
Method Detail

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 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

getPadWithBlanks

public boolean getPadWithBlanks()
If true, pads field with blanks.


setPadWithBlanks

public void setPadWithBlanks(boolean tizit)