T - The type of object that the Serializer serializes@FunctionalInterface
public interface Serializer<T>
A Serializer is capable of transforming an object of type T
into a byte-array representation and writing it to a BITContainer.
A number of built-in Serializer factories are available via
static methods on the Serializers class:
| Modifier and Type | Method and Description |
|---|---|
void |
serialize(T object,
java.io.OutputStream out)
Serializes the supplied object to the supplied OutputStream.
|
void serialize(T object, java.io.OutputStream out) throws CICSConditionIOException, java.io.IOException
T. This
can is used to decorate an OutputStream which is capable of writing data to a
WritableBITContainer. As such, the underlying container may encounter
CICSConditionIOExceptions which will likely be encountered by implementations
of this interface. For information about EXEC CICS API commands and
RespCodes, see WritableBITContainer.put(byte[])
and WritableBITContainer.append(byte[])object - T to serializeout - Container to serialize toCICSConditionIOException - if there's a problem writing the data to the containerjava.io.IOException - if there is a problem serializing the input data