Class AbstractForkInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.maven.plugin.surefire.booterclient.lazytestprovider.AbstractForkInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,NotifiableTestStream
- Direct Known Subclasses:
AbstractCommandStream
public abstract class AbstractForkInputStream extends java.io.InputStream implements NotifiableTestStream
Reader stream sends bytes to forked jvm std-input-stream
.- Since:
- 2.19
-
-
Field Summary
Fields Modifier and Type Field Description private FlushReceiverProvider
flushReceiverProvider
-
Constructor Summary
Constructors Constructor Description AbstractForkInputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setFlushReceiverProvider(FlushReceiverProvider flushReceiverProvider)
protected boolean
tryFlush()
-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.maven.plugin.surefire.booterclient.lazytestprovider.NotifiableTestStream
acknowledgeByeEventReceived, noop, provideNewTest, shutdown, skipSinceNextTest
-
-
-
-
Field Detail
-
flushReceiverProvider
private volatile FlushReceiverProvider flushReceiverProvider
-
-
Method Detail
-
setFlushReceiverProvider
public void setFlushReceiverProvider(FlushReceiverProvider flushReceiverProvider)
- Parameters:
flushReceiverProvider
- the provider for a flush receiver.
-
tryFlush
protected boolean tryFlush() throws java.io.IOException
- Throws:
java.io.IOException
-
-