Class CloseShieldInput

  • All Implemented Interfaces:
    Input

    public final class CloseShieldInput
    extends Object
    implements Input
    A decorator of Input that prevents InputStream to be closed by its performers.

    There is no thread-safety guarantee.

    Since:
    1.0.0
    • Constructor Detail

      • CloseShieldInput

        public CloseShieldInput​(Input origin)
        Ctor.
        Parameters:
        origin - Origin
    • Method Detail

      • stream

        public InputStream stream()
                           throws Exception
        Description copied from interface: Input
        Get read access to it.
        Specified by:
        stream in interface Input
        Returns:
        InputStream to read from
        Throws:
        Exception - If something goes wrong