com.ibm.as400.access

Class PxBooleanParm

  • java.lang.Object
    • com.ibm.as400.access.PxBooleanParm


  • public class PxBooleanParm
    extends java.lang.Object
    The PxBooleanParm class represents a boolean parameter in a proxy datastream.
    • Constructor Summary

      Constructors 
      Constructor and Description
      PxBooleanParm()
      Constructs a PxBooleanParm object.
      PxBooleanParm(boolean value)
      Constructs a PxBooleanParm object.
      PxBooleanParm(java.lang.Boolean value)
      Constructs a PxBooleanParm object.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.Object clone()
      Returns a new copy of this datastream.
      java.lang.Object clone()
      Returns a new copy of this datastream.
      void dump(java.io.PrintWriter output)
      Dumps the datastream for debugging and tracing.
      boolean getBooleanValue()
      Returns the boolean value.
      java.lang.Object getObjectValue()
      Returns the Object value.
      short getType()
      Returns the datastream type.
      short getType()
      Returns the datastream type.
      void readFrom(java.io.InputStream input, com.ibm.as400.access.PxDSFactory factory)
      Loads this datastream by reading from an input stream.
      java.lang.String toString()
      Returns the String representation of the datastream.
      void writeTo(java.io.OutputStream output)
      Writes the contents of the datastream to an output stream.
      • Methods inherited from class java.lang.Object

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

      • PxBooleanParm

        public PxBooleanParm()
        Constructs a PxBooleanParm object.
      • PxBooleanParm

        public PxBooleanParm(boolean value)
        Constructs a PxBooleanParm object.
        Parameters:
        value - The boolean value.
      • PxBooleanParm

        public PxBooleanParm(java.lang.Boolean value)
        Constructs a PxBooleanParm object.
        Parameters:
        value - The boolean value.
    • Method Detail

      • getBooleanValue

        public boolean getBooleanValue()
        Returns the boolean value.
        Returns:
        The boolean value.
      • getObjectValue

        public java.lang.Object getObjectValue()
        Returns the Object value.
        Returns:
        The Object value.
      • readFrom

        public void readFrom(java.io.InputStream input,
                    com.ibm.as400.access.PxDSFactory factory)
                      throws java.io.IOException
        Loads this datastream by reading from an input stream.
        Parameters:
        input - The input stream.
        factory - The datastream factory. This is sometimes needed when datastreams are nested.
        Throws:
        java.io.IOException - If an error occurs.
      • toString

        public java.lang.String toString()
        Returns the String representation of the datastream.
        Returns:
        The String representation of the datastream.
      • writeTo

        public void writeTo(java.io.OutputStream output)
                     throws java.io.IOException
        Writes the contents of the datastream to an output stream.
        Parameters:
        output - The output stream.
        Throws:
        java.io.IOException - If an error occurs.
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Returns a new copy of this datastream.
        Returns:
        A new copy of this datastream.
        Throws:
        java.lang.CloneNotSupportedException - If the object cannot be cloned.
      • getType

        public short getType()
        Returns the datastream type.
        Returns:
        The datastream type.
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Returns a new copy of this datastream.
        Overrides:
        clone in class java.lang.Object
        Returns:
        A new copy of this datastream.
        Throws:
        java.lang.CloneNotSupportedException - If the object cannot be cloned.
      • dump

        public void dump(java.io.PrintWriter output)
        Dumps the datastream for debugging and tracing.
        Parameters:
        output - The print writer to which to dump the datastream.
      • getType

        public short getType()
        Returns the datastream type.
        Returns:
        The datastream type.