Interface IReaderLogger

  • All Superinterfaces:
    ILogger

    public interface IReaderLogger
    extends ILogger
    Interface to read a line from the System.in input stream.

    The interface also implements ILogger since code that needs to ask for a command-line input will most likely also want to use ILogger.info(String, Object...) to print information such as an input prompt.

    • Method Detail

      • readLine

        int readLine​(@NonNull
                     byte[] inputBuffer)
              throws java.io.IOException
        Reads a line from System.in.

        This call is blocking and should only be called from command-line enabled applications.

        Parameters:
        inputBuffer - A non-null buffer where to place the input.
        Returns:
        The number of bytes read into the buffer.
        Throws:
        java.io.IOException - as returned by {code System.in.read()}.