Class WritingPofHandler.Complex

    • Constructor Detail

      • Complex

        public Complex​(WritingPofHandler.Complex complexCurrent,
                       boolean fEncodePosition)
        Construct a Complex object for a data collection or user type.
        Parameters:
        complexCurrent - the current Complex object or null
        fEncodePosition - true to encode the position information
      • Complex

        public Complex​(WritingPofHandler.Complex complexCurrent,
                       boolean fEncodePosition,
                       int nUniformTypeId)
        Construct a Complex object for a uniformly-typed data collection.
        Parameters:
        complexCurrent - the current Complex object or null
        fEncodePosition - true to encode the position information
        nUniformTypeId - the type identifier of the uniform type
    • Method Detail

      • onValue

        public void onValue​(int iPos)
        Notify the Complex object that a value has been encountered.
        Parameters:
        iPos - the position that accomponied the value
      • isUniform

        public boolean isUniform()
        Determine if the object encoding within the Complex type is uniform.
        Returns:
        true iff values within the Complex type are of a uniform type and are encoded uniformly
      • getUniformType

        public int getUniformType()
        If the object encoding is using uniform encoding, obtain the type id of the uniform type.
        Returns:
        the type id used for the uniform encoding
      • isSparse

        public boolean isSparse()
        Determine if the position information is encoded with the values of the complex type, and if the Complex type is terminated in the POF stream with an illegal position (-1).
        Returns:
        true iff the complex value is a sparse type
      • pop

        public WritingPofHandler.Complex pop()
        Pop this Complex object off the stack, returning the outer Complex object or null if there is none.
        Returns:
        the outer Complex object or null if there is none