|
|||||||||
| Home >> All >> org >> apache >> derby >> iapi >> services >> [ io overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.derby.iapi.services.io
Class FormatableArrayHolder

java.lang.Objectorg.apache.derby.iapi.services.io.FormatableArrayHolder
- All Implemented Interfaces:
- java.io.Externalizable, Formatable, java.io.Serializable, TypedFormat
- public class FormatableArrayHolder
- extends java.lang.Object
- implements Formatable
- extends java.lang.Object
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 |
array
private java.lang.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.
| Constructor Detail |
FormatableArrayHolder
public FormatableArrayHolder()
- Niladic constructor for formatable
FormatableArrayHolder
public FormatableArrayHolder(java.lang.Object[] array)
- Construct a FormatableArrayHolder using the input
array.
| Method Detail |
setArray
public void setArray(java.lang.Object[] array)
- Set the held array to the input array.
getArray
public java.lang.Object[] getArray(java.lang.Class inputClass)
- Get the held array of formatables, and return
it in an array of type inputClass.
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Write this array out
- Specified by:
writeExternalin interfacejava.io.Externalizable
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Read this array from a stream of stored objects.
- Specified by:
readExternalin interfacejava.io.Externalizable
readExternal
public void readExternal(ArrayInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
getTypeFormatId
public int getTypeFormatId()
- Get the formatID which corresponds to this class.
- Specified by:
getTypeFormatIdin interfaceTypedFormat
|
|||||||||
| Home >> All >> org >> apache >> derby >> iapi >> services >> [ io overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.derby.iapi.services.io.FormatableArrayHolder