com.ibm.cics.server
Class CommAreaHolder

java.lang.Object
  |
  +--com.ibm.cics.server.CommAreaHolder

public class CommAreaHolder
extends java.lang.Object

The class that represents a COMMAREA. The actual COMMAREA is an instance variable of type byte[] with the name value.

The reason for this extra holder class is that a COMMAREA is used both for input and output so the extra level of indirection is needed as Java only passes arguments by value. On input, value contains the COMMAREA that is being passed in to the program, and the program can return a COMMAREA by setting value to a new byte[] that it has constructed.


Field Summary
 byte[] value
          The array of bytes comprising the COMMAREA.
 
Constructor Summary
CommAreaHolder()
          Construct a CommAreaHolder without a "value".
CommAreaHolder(byte[] value)
          Construct a CommAreaHolder for an existing byte[].
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

public byte[] value
The array of bytes comprising the COMMAREA.
Constructor Detail

CommAreaHolder

public CommAreaHolder()
Construct a CommAreaHolder without a "value".

CommAreaHolder

public CommAreaHolder(byte[] value)
Construct a CommAreaHolder for an existing byte[].
Parameters:
value - The existing array of bytes that is to be used as the COMMAREA.


Copyright (c) 2005 by Sun Microsystems, Inc.