| Modifier and Type | Field and Description |
|---|---|
| private Object[] | array
This class implements Formatable. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | FormatableArrayHolder(Object[]
the array to hold array)Construct a FormatableArrayHolder using the input array. |
| Modifier and Type | Method and Description |
|---|---|
| public < The type of the array cell E> E[] | |
| public int | Returns: the formatID of this classImplements org. Get the formatID which corresponds to this class. |
| public void | readExternal(ObjectInput
read this. in)Implements java. Read this array from a stream of stored objects. |
| public void | |
| public void | writeExternal(ObjectOutput
write bytes here out)Implements java. Write this array out |
| array | back to summary |
|---|---|
| private Object[] array This class implements Formatable. That means that it can write itself to and from a formatted stream. If you add more fields to this class, make sure that you also write/read them with the writeExternal()/readExternal() methods. If, inbetween releases, you add more fields to this class, then you should bump the version number emitted by the getTypeFormatId() method. | |
| FormatableArrayHolder | back to summary |
|---|---|
| public FormatableArrayHolder() Niladic constructor for formatable | |
| FormatableArrayHolder | back to summary |
|---|---|
| public FormatableArrayHolder(Object[] array) Construct a FormatableArrayHolder using the input array.
| |
| getArray | back to summary |
|---|---|
| public <E> E[] getArray(Class<E[]> arrayClass) Get the held array of formatables, and return
it in an array that is an instance of
| |
| getTypeFormatId | back to summary |
|---|---|
| public int getTypeFormatId() Implements org. Get the formatID which corresponds to this class.
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Implements java. Read this array from a stream of stored objects.
| |
| setArray | back to summary |
|---|---|
| public void setArray(Object[] array) Set the held array to the input array.
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Implements java. Write this array out
| |