org.infinispan.io
Class ReadableGridFileChannel

java.lang.Object
  extended by org.infinispan.io.ReadableGridFileChannel
All Implemented Interfaces:
Closeable, Channel, ReadableByteChannel

public class ReadableGridFileChannel
extends Object
implements ReadableByteChannel

Author:
Marko Luksa

Method Summary
 void close()
           
 boolean isOpen()
           
 long position()
           
 void position(long newPosition)
           
 int read(ByteBuffer dst)
           
 long size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

read

public int read(ByteBuffer dst)
         throws IOException
Specified by:
read in interface ReadableByteChannel
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

position

public long position()
              throws IOException
Throws:
IOException

position

public void position(long newPosition)
              throws IOException
Throws:
IOException

size

public long size()
          throws IOException
Throws:
IOException

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.