Documentation of 'org.apache.derby.iapi.services.io.FormatableArrayHolder' Java class
FormatableArrayHolder
org.apache.derby.iapi.services.io

Class FormatableArrayHolder

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable, Formatable, TypedFormat


    public class FormatableArrayHolder
    extends java.lang.Object
    implements Formatable
    A formatable holder for an array of formatables. Used to avoid serializing arrays.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      FormatableArrayHolder()
      Niladic constructor for formatable
      FormatableArrayHolder(java.lang.Object[] array)
      Construct a FormatableArrayHolder using the input array.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and 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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FormatableArrayHolder

        public FormatableArrayHolder()
        Niladic constructor for formatable
      • FormatableArrayHolder

        public FormatableArrayHolder(java.lang.Object[] array)
        Construct a FormatableArrayHolder using the input array.
        Parameters:
        array - the array to hold
    • Method Detail

      • setArray

        public void setArray(java.lang.Object[] array)
        Set the held array to the input array.
        Parameters:
        array - the array to hold
      • getArray

        public <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.
        Parameters:
        arrayClass - the type of array to return
        Returns:
        an array of formatables
      • writeExternal

        public void writeExternal(java.io.ObjectOutput out)
                           throws java.io.IOException
        Write this array out
        Specified by:
        writeExternal in interface java.io.Externalizable
        Parameters:
        out - write bytes here
        Throws:
        java.io.IOException - thrown on error
      • 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:
        readExternal in interface java.io.Externalizable
        Parameters:
        in - read this.
        Throws:
        java.io.IOException - thrown on error
        java.lang.ClassNotFoundException - thrown on error
      • getTypeFormatId

        public int getTypeFormatId()
        Get the formatID which corresponds to this class.
        Specified by:
        getTypeFormatId in interface TypedFormat
        Returns:
        the formatID of this class

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.