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 boolean
open
-
Constructor Summary
Constructors Constructor Description AbstractNoninterruptibleWritableChannel()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
protected abstract void
closeImpl()
protected abstract void
flushImpl()
boolean
isOpen()
int
write(java.nio.ByteBuffer src)
(package private) int
write(java.nio.ByteBuffer src, boolean flush)
void
writeBuffered(java.nio.ByteBuffer src)
protected abstract void
writeImpl(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:
write
in interfacejava.nio.channels.WritableByteChannel
- Throws:
java.io.IOException
-
writeBuffered
public final void writeBuffered(java.nio.ByteBuffer src) throws java.io.IOException
- Specified by:
writeBuffered
in 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:
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
-
-