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 void
close()
boolean
isOpen()
long
position()
void
position(long newPosition)
int
read(ByteBuffer dst)
long
size()
-
-
-
Method Detail
-
read
public int read(ByteBuffer dst) throws IOException
- Specified by:
read
in 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
size
public long size() throws IOException
- Throws:
IOException
-
-