Interface Unmarshallable

  • 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 Unmarshallable
    The role of an object that can be unmarshalled.
    Author:
    Fabrizio Giudici
    Stereotype:
    Role
    • Field Detail

      • _Unmarshallable_

        static final java.lang.Class<Unmarshallable> _Unmarshallable_
    • Method Detail

      • unmarshal

        @Nonnull
        <T> T unmarshal​(@Nonnull
                        java.io.InputStream is)
                 throws java.io.IOException
        Unmarshalls the object from the given InputStream.
        Type Parameters:
        T - the type of the returned value
        Parameters:
        is - the InputStream
        Returns:
        the unmarshalled object
        Throws:
        java.io.IOException - when an error occurs