|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.iapi.services.io.FormatableArrayHolder
public class FormatableArrayHolder
A formatable holder for an array of formatables. Used to avoid serializing arrays.
| Field Summary | |
|---|---|
private java.lang.Object[] |
array
This class implements Formatable. |
| Constructor Summary | |
|---|---|
FormatableArrayHolder()
Niladic constructor for formatable |
|
FormatableArrayHolder(java.lang.Object[] array)
Construct a FormatableArrayHolder using the input array. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.Object[] array
| Constructor Detail |
|---|
public FormatableArrayHolder()
public FormatableArrayHolder(java.lang.Object[] array)
array - the array to hold| Method Detail |
|---|
public 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 array
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - write bytes here
java.io.IOException - thrown on error
public 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 error
java.lang.ClassNotFoundException - thrown on errorpublic int getTypeFormatId()
getTypeFormatId in interface TypedFormat
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||