com.ibm.cics.jcicsx

Interface Deserializer<T>

  • Type Parameters:
    T - The type of object that the Deserializer produces
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.


    @FunctionalInterface
    public interface Deserializer<T>

    A Deserializer is capable of transforming the content of a BitContainer into an object of type T.

    A number of built-in Deserializer factories are available via static methods on the Deserializers class:

    Since CICS TS version:
    5.6
    Since package version:
    1.000.0
    • Method Detail

      • deserialize

        T deserialize(java.io.InputStream in)
               throws CICSConditionIOException,
                      java.io.IOException
        Deserializes the content of a container into an object of type T. This is used to decorate an InputStream which is providing data from a ReadableBITContainer. 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 ReadableBITContainer.read(byte[], int, int, int)
        Parameters:
        in - The InputStream to read data from
        Returns:
        The deserialised data
        Throws:
        java.io.IOException - if there is a problem deserializing the input data
        CICSConditionIOException - if there's a problem getting the data from the container