Class LoggingInput

  • All Implemented Interfaces:
    Input

    public final class LoggingInput
    extends Object
    implements Input
    Logged input.

    There is no thread-safety guarantee.

    Since:
    0.29
    • Constructor Detail

      • LoggingInput

        public LoggingInput​(Input input,
                            String src)
        Ctor.
        Parameters:
        input - Data input
        src - The name of source data
      • LoggingInput

        public LoggingInput​(Input input,
                            String src,
                            Logger lgr)
        Ctor.
        Parameters:
        input - Data input
        src - The name of source data
        lgr - Message logger
    • 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