Package com.android.utils
Interface IReaderLogger
-
- All Superinterfaces:
ILogger
public interface IReaderLogger extends ILogger
Interface to read a line from the
The interface also implementsSystem.ininput stream.ILoggersince 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 intreadLine(byte[] inputBuffer)Reads a line fromSystem.in.
-
-
-
Method Detail
-
readLine
int readLine(@NonNull byte[] inputBuffer) throws java.io.IOExceptionReads a line from
This call is blocking and should only be called from command-line enabled applications.System.in.- 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()}.
-
-