Package net.sansa_stack.nio.util
Class InterruptingSeekableByteChannel
- java.lang.Object
-
- net.sansa_stack.nio.util.SeekableByteChannelDecoratorBase
-
- net.sansa_stack.nio.util.InterruptingSeekableByteChannel
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ByteChannel
,Channel
,ReadableByteChannel
,SeekableByteChannel
,WritableByteChannel
,SeekableByteChannelDecorator
public class InterruptingSeekableByteChannel extends SeekableByteChannelDecoratorBase
-
-
Field Summary
Fields Modifier and Type Field Description protected long
interruptPos
-
Fields inherited from class net.sansa_stack.nio.util.SeekableByteChannelDecoratorBase
decoratee
-
-
Constructor Summary
Constructors Constructor Description InterruptingSeekableByteChannel(SeekableByteChannel decoratee, long interruptPos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read(ByteBuffer byteBuffer)
-
Methods inherited from class net.sansa_stack.nio.util.SeekableByteChannelDecoratorBase
getDecoratee
-
-
-
-
Constructor Detail
-
InterruptingSeekableByteChannel
public InterruptingSeekableByteChannel(SeekableByteChannel decoratee, long interruptPos)
-
-
Method Detail
-
read
public int read(ByteBuffer byteBuffer) throws IOException
- Throws:
IOException
-
-