com.ibm.cics.server
Class CommAreaHolder
java.lang.Object
com.ibm.cics.server.CommAreaHolder
- All Implemented Interfaces:
- java.io.Serializable
- public class CommAreaHolder
- extends java.lang.Object
- implements java.io.Serializable
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; the program returns a
COMMAREA by setting value
to a new byte[]
that it
has constructed.
For example, if you have output in a byte array called 'myByteArray' and
the CommAreaHolder instance passed in to the application is referenced
as 'ca' then you can copy your application's output in to the commarea
used by CICS with the following command:
System.arrayCopy(myByteArray, 0, ca.value, 0, myByteArray.length);
- Version:
- 1.2
- Author:
- John Colgrave
- See Also:
- Serialized Form
Field Summary |
byte[] |
value
The array of bytes comprising the COMMAREA. |
Constructor Summary |
CommAreaHolder()
Constructs a CommAreaHolder without a value. |
CommAreaHolder(byte[] __arg)
Constructs a CommAreaHolder for an existing
byte[] . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
public byte[] value
- The array of bytes comprising the COMMAREA.
CommAreaHolder
public CommAreaHolder()
- Constructs a
CommAreaHolder
without a value.
CommAreaHolder
public CommAreaHolder(byte[] __arg)
- Constructs a
CommAreaHolder
for an existing
byte[]
.
- Parameters:
__arg
- The existing array of bytes that is to be used as the
COMMAREA.