|
||||||||||
| 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
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(ArrayInputStream in)
|
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)
| Method Detail |
public void setArray(java.lang.Object[] array)
public 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 error
public void readExternal(ArrayInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundExceptionpublic int getTypeFormatId()
getTypeFormatId in interface TypedFormat
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||