Class Sticky

  • All Implemented Interfaces:
    Input

    public final class Sticky
    extends Object
    implements Input
    Input that reads only once.

    Pay attention that this class is not thread-safe. It is highly recommended to always decorate it with SyncInput.

    There is no thread-safety guarantee.

    Since:
    0.6
    • Constructor Detail

      • Sticky

        public Sticky​(Input input)
        Ctor.
        Parameters:
        input - The input
    • 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