org.jcon.text
Class ArrayPicture
java.lang.Object
org.jcon.text.FixedLengthFieldPicture
org.jcon.text.ArrayPicture
- All Implemented Interfaces:
- java.io.Serializable
public class ArrayPicture
- extends FixedLengthFieldPicture
A "picture", or format description, for a arrays of other fixed-width field.
- Author:
- Paul Reavis
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayPicture
public ArrayPicture()
ArrayPicture
public ArrayPicture(FixedLengthFieldPicture elementPicture,
int numberOfElements)
format
public char[] format(java.lang.Object value)
- Return a character array holding the formatted value corresponding to the
provided object. Object must be an array of objects that fit the
elementPicture.
- 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
getNumberOfElements
public int getNumberOfElements()
setNumberOfElements
public void setNumberOfElements(int newnumberOfElements)
getElementPicture
public FixedLengthFieldPicture getElementPicture()
setElementPicture
public void setElementPicture(FixedLengthFieldPicture newelementPicture)