Jolt 1.2 Developer's Guide

tryOnCARRAY.java Client Code
Example 6-3 illustrates how Jolt works with a service whose buffer type is CARRAY. Since Jolt does not look into the CARRAY data stream, the
programmer must match the data format between the Jolt client and the CARRAY service. The following example assumes that a session object was
already instantiated.
Example 6-3. Use of the CARRAY buffer type (tryOnCARRAY.java)
/* Copyright 1996 BEA Systems, Inc. All Rights Reserved */
/* This code fragment illustrates how Jolt works with a service
* whose buffer type is CARRAY.
*/
import java.io.*;
import bea.jolt.*;
class ...
{
...
public void tryOnCARRAY()
{
byte data[];
JoltRemoteService csvc;
DataInputStream din;
DataOutputStream dout;
ByteArrayInputStream bin;
ByteArrayOutputStream bout;