Package com.android.utils
Interface IReaderLogger
-
- All Superinterfaces:
ILogger
public interface IReaderLogger extends ILogger
Interface to read a line from theSystem.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 useILogger.info(String, Object...)
to print information such as an input prompt.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
readLine(byte[] inputBuffer)
Reads a line fromSystem.in
.
-
-
-
Method Detail
-
readLine
int readLine(@NonNull byte[] inputBuffer) throws java.io.IOException
Reads a line fromSystem.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()}.
-
-