Class AbstractNoninterruptibleReadableChannel
- java.lang.Object
-
- org.apache.maven.surefire.api.util.internal.AbstractNoninterruptibleReadableChannel
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.nio.channels.Channel
,java.nio.channels.ReadableByteChannel
abstract class AbstractNoninterruptibleReadableChannel extends java.lang.Object implements java.nio.channels.ReadableByteChannel
The channel used for reads which cannot be implicitly closed after the operational Thread isinterrupted
.- Since:
- 3.0.0-M5
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
open
-
Constructor Summary
Constructors Constructor Description AbstractNoninterruptibleReadableChannel()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
protected abstract void
closeImpl()
boolean
isOpen()
int
read(java.nio.ByteBuffer src)
protected abstract int
readImpl(java.nio.ByteBuffer src)
-
-
-
Method Detail
-
readImpl
protected abstract int readImpl(java.nio.ByteBuffer src) throws java.io.IOException
- Throws:
java.io.IOException
-
closeImpl
protected abstract void closeImpl() throws java.io.IOException
- Throws:
java.io.IOException
-
read
public final int read(java.nio.ByteBuffer src) throws java.io.IOException
- Specified by:
read
in interfacejava.nio.channels.ReadableByteChannel
- Throws:
java.io.IOException
-
isOpen
public final boolean isOpen()
- Specified by:
isOpen
in interfacejava.nio.channels.Channel
-
close
public final void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.nio.channels.Channel
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-