Class AbstractNoninterruptibleWritableChannel
- java.lang.Object
-
- org.apache.maven.surefire.api.util.internal.AbstractNoninterruptibleWritableChannel
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.nio.channels.Channel,java.nio.channels.WritableByteChannel,WritableBufferedByteChannel
abstract class AbstractNoninterruptibleWritableChannel extends java.lang.Object implements WritableBufferedByteChannel
The channel used for writes 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 AbstractNoninterruptibleWritableChannel()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()protected abstract voidcloseImpl()protected abstract voidflushImpl()booleanisOpen()intwrite(java.nio.ByteBuffer src)(package private) intwrite(java.nio.ByteBuffer src, boolean flush)voidwriteBuffered(java.nio.ByteBuffer src)protected abstract voidwriteImpl(java.nio.ByteBuffer src)-
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.surefire.api.util.internal.WritableBufferedByteChannel
countBufferOverflows
-
-
-
-
Method Detail
-
writeImpl
protected abstract void writeImpl(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
-
flushImpl
protected abstract void flushImpl() throws java.io.IOException- Throws:
java.io.IOException
-
write
public final int write(java.nio.ByteBuffer src) throws java.io.IOException- Specified by:
writein interfacejava.nio.channels.WritableByteChannel- Throws:
java.io.IOException
-
writeBuffered
public final void writeBuffered(java.nio.ByteBuffer src) throws java.io.IOException- Specified by:
writeBufferedin interfaceWritableBufferedByteChannel- Throws:
java.io.IOException
-
write
int write(java.nio.ByteBuffer src, boolean flush) throws java.io.IOException- 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
-
-