org.kie.commons.java.nio.base
Class SeekableByteChannelWrapperImpl
java.lang.Object
org.kie.commons.java.nio.base.SeekableByteChannelWrapperImpl
- All Implemented Interfaces:
- Closeable, ByteChannel, Channel, ReadableByteChannel, WritableByteChannel, SeekableByteChannel
public class SeekableByteChannelWrapperImpl
- extends Object
- implements SeekableByteChannel
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SeekableByteChannelWrapperImpl
public SeekableByteChannelWrapperImpl(SeekableByteChannel channel)
position
public long position()
throws IOException
- Specified by:
position in interface SeekableByteChannel
- Throws:
IOException
position
public SeekableByteChannel position(long newPosition)
throws IOException
- Specified by:
position in interface SeekableByteChannel
- Throws:
IOException
size
public long size()
throws IOException
- Specified by:
size in interface SeekableByteChannel
- Throws:
IOException
truncate
public SeekableByteChannel truncate(long size)
throws IOException
- Specified by:
truncate in interface SeekableByteChannel
- Throws:
IOException
read
public int read(ByteBuffer dst)
throws IOException
- Specified by:
read in interface ReadableByteChannel
- Throws:
IOException
write
public int write(ByteBuffer src)
throws IOException
- Specified by:
write in interface WritableByteChannel
- Throws:
IOException
isOpen
public boolean isOpen()
- Specified by:
isOpen in interface Channel
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Specified by:
close in interface Channel
- Throws:
IOException
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.