Class SyncInput

  • All Implemented Interfaces:
    Input

    public final class SyncInput
    extends Object
    implements Input
    Thread-safe Input.

    Objects of this class are thread safe.

    Since:
    0.18
    • Constructor Detail

      • SyncInput

        public SyncInput​(Input input)
        Ctor.
        Parameters:
        input - The input
      • SyncInput

        public SyncInput​(Input input,
                         Object lck)
        Ctor.
        Parameters:
        input - The input
        lck - The lock object
    • 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