public class FormatableArrayHolder extends java.lang.Object implements Formatable
Modifier and Type | Field and Description |
---|---|
private java.lang.Object[] |
array
This class implements Formatable.
|
Constructor and Description |
---|
FormatableArrayHolder()
Niladic constructor for formatable
|
FormatableArrayHolder(java.lang.Object[] array)
Construct a FormatableArrayHolder using the input
array.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getArray(java.lang.Class inputClass)
Get the held array of formatables, and return
it in an array of type inputClass.
|
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 java.lang.Object[] getArray(java.lang.Class inputClass)
inputClass
- the class to use for the returned arraypublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- 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.Externalizable
in
- read this.java.io.IOException
- thrown on errorjava.lang.ClassNotFoundException
- thrown on errorpublic int getTypeFormatId()
getTypeFormatId
in interface TypedFormat
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.