Package org.infinispan.io
Class ReadableGridFileChannel
- java.lang.Object
-
- org.infinispan.io.ReadableGridFileChannel
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,ReadableByteChannel
public class ReadableGridFileChannel extends Object implements ReadableByteChannel
- Author:
- Marko Luksa
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisOpen()longposition()voidposition(long newPosition)intread(ByteBuffer dst)longsize()
-
-
-
Method Detail
-
read
public int read(ByteBuffer dst) throws IOException
- Specified by:
readin interfaceReadableByteChannel- Throws:
IOException
-
position
public long position() throws IOException- Throws:
IOException
-
position
public void position(long newPosition) throws IOException- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
size
public long size() throws IOException- Throws:
IOException
-
-