GraalVM SDK Java API Reference
24.0.0-dev
ab85b49ee22c30926df12a8ff39c3eb49da6106f
-
-
Method Detail
-
ready
public boolean ready()
- Overrides:
ready
in class Reader
-
read
protected int read(long timeout,
boolean isPeek)
throws IOException
Attempts to read a character from the input stream for a specific
period of time.
- Specified by:
read
in class NonBlockingReader
- Parameters:
timeout
- The amount of time to wait for the character
isPeek
- true
if the character read must not be consumed
- Returns:
- The character read, -1 if EOF is reached, or -2 if the
read timed out.
- Throws:
IOException
- if anything wrong happens
GraalVM SDK Java API Reference
24.0.0-dev
ab85b49ee22c30926df12a8ff39c3eb49da6106f
Copyright © 2012, 2023, Oracle and/or its affiliates. All rights reserved.