Package org.infinispan.io
Class ReadableGridFileChannel
- java.lang.Object
-
- org.infinispan.io.ReadableGridFileChannel
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.nio.channels.Channel,java.nio.channels.ReadableByteChannel
public class ReadableGridFileChannel extends java.lang.Object implements java.nio.channels.ReadableByteChannel- Author:
- Marko Luksa
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisOpen()longposition()voidposition(long newPosition)intread(java.nio.ByteBuffer dst)longsize()
-
-
-
Method Detail
-
read
public int read(java.nio.ByteBuffer dst) throws java.io.IOException- Specified by:
readin interfacejava.nio.channels.ReadableByteChannel- Throws:
java.io.IOException
-
position
public long position() throws java.io.IOException- Throws:
java.io.IOException
-
position
public void position(long newPosition) throws java.io.IOException- Throws:
java.io.IOException
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin interfacejava.nio.channels.Channel
-
close
public 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
-
size
public long size() throws java.io.IOException- Throws:
java.io.IOException
-
-