Class DummyMapper<T>

  • Type Parameters:
    T - the preset bean type
    All Implemented Interfaces:
    Mapper<T>

    public class DummyMapper<T>
    extends Object
    implements Mapper<T>
    A dummy Mapper for use with a preset configuration bean and other internal purposes.
    Since:
    2.1.0
    Author:
    oswaldo.bapvic.jr (Oswaldo Junior)
    • Method Detail

      • apply

        public T apply​(InputStream input)
                throws IOException
        Description copied from interface: Mapper
        Applies this Mapper into the given input.

        Note: The input stream must be closed by the caller after the mapping operation.

        Specified by:
        apply in interface Mapper<T>
        Parameters:
        input - the input stream to be mapped
        Returns:
        the mapped object
        Throws:
        IOException - if a low-level I/O problem (such and unexpected end-of-input, or network error) occurs