GraalVM SDK Java API Reference
23.1.11-dev
322664413eaa7da12097f82beb7cb88edf82ef2b
-
-
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 - trueif 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
23.1.11-dev
322664413eaa7da12097f82beb7cb88edf82ef2b
Copyright © 2012, 2026, Oracle and/or its affiliates. All rights reserved.