Interface CommandReader
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
AbstractCommandReader,DefaultCommandReader,TestLessInputStream,TestProvidingInputStream
public interface CommandReader extends java.io.CloseableStream reader returns bytes which ar finally sent to the forked jvm.- Since:
- 3.0.0-M4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()booleanisClosed()CommandreadNextCommand()Waits for the next command and returns it.
-
-
-
Method Detail
-
readNextCommand
Command readNextCommand() throws java.io.IOException
Waits for the next command and returns it.- Returns:
- the command, or null if closed
- Throws:
java.io.IOException
-
close
void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
isClosed
boolean isClosed()
-
-