java.io.Externalizable, java.io.Serializable, Formatable, TypedFormatpublic class FormatableArrayHolder extends java.lang.Object implements Formatable
| Modifier and Type | Field | Description |
|---|---|---|
private java.lang.Object[] |
array |
This class implements Formatable.
|
| Constructor | Description |
|---|---|
FormatableArrayHolder() |
Niladic constructor for formatable
|
FormatableArrayHolder(java.lang.Object[] array) |
Construct a FormatableArrayHolder using the input
array.
|
| Modifier and Type | Method | Description |
|---|---|---|
<E> E[] |
getArray(java.lang.Class<E[]> arrayClass) |
Get the held array of formatables, and return
it in an array that is an instance of
arrayClass. |
int |
getTypeFormatId() |
Get the formatID which corresponds to this class.
|
void |
readExternal(java.io.ObjectInput in) |
Read this array from a stream of stored objects.
|
void |
setArray(java.lang.Object[] array) |
Set the held array to the input array.
|
void |
writeExternal(java.io.ObjectOutput out) |
Write this array out
|
private java.lang.Object[] array
public FormatableArrayHolder()
public FormatableArrayHolder(java.lang.Object[] array)
array - the array to holdpublic void setArray(java.lang.Object[] array)
array - the array to holdpublic <E> E[] getArray(java.lang.Class<E[]> arrayClass)
arrayClass.arrayClass - the type of array to returnpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - write bytes herejava.io.IOException - thrown on errorpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - read this.java.io.IOException - thrown on errorjava.lang.ClassNotFoundException - thrown on errorpublic int getTypeFormatId()
getTypeFormatId in interface TypedFormatApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.