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.ReadableByteChannelThe 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 booleanopen
-
Constructor Summary
Constructors Constructor Description AbstractNoninterruptibleReadableChannel()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()protected abstract voidcloseImpl()booleanisOpen()intread(java.nio.ByteBuffer src)protected abstract intreadImpl(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:
readin interfacejava.nio.channels.ReadableByteChannel- Throws:
java.io.IOException
-
isOpen
public final boolean isOpen()
- Specified by:
isOpenin interfacejava.nio.channels.Channel
-
close
public final void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.nio.channels.Channel- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-