Package org.uberfire.java.nio.base
Class SeekableByteChannelWrapperImpl
- java.lang.Object
-
- org.uberfire.java.nio.base.SeekableByteChannelWrapperImpl
-
- All Implemented Interfaces:
Closeable,AutoCloseable,ByteChannel,Channel,ReadableByteChannel,WritableByteChannel,SeekableByteChannel
public class SeekableByteChannelWrapperImpl extends Object implements SeekableByteChannel
-
-
Constructor Summary
Constructors Constructor Description SeekableByteChannelWrapperImpl(SeekableByteChannel channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisOpen()longposition()SeekableByteChannelposition(long newPosition)intread(ByteBuffer dst)longsize()SeekableByteChanneltruncate(long size)intwrite(ByteBuffer src)
-
-
-
Constructor Detail
-
SeekableByteChannelWrapperImpl
public SeekableByteChannelWrapperImpl(SeekableByteChannel channel)
-
-
Method Detail
-
position
public long position() throws IOException- Specified by:
positionin interfaceSeekableByteChannel- Throws:
IOException
-
position
public SeekableByteChannel position(long newPosition) throws IOException
- Specified by:
positionin interfaceSeekableByteChannel- Throws:
IOException
-
size
public long size() throws IOException- Specified by:
sizein interfaceSeekableByteChannel- Throws:
IOException
-
truncate
public SeekableByteChannel truncate(long size) throws IOException
- Specified by:
truncatein interfaceSeekableByteChannel- Throws:
IOException
-
read
public int read(ByteBuffer dst) throws IOException
- Specified by:
readin interfaceReadableByteChannel- Throws:
IOException
-
write
public int write(ByteBuffer src) throws IOException
- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-