voldemort.store.readonly.io
Class ByteBufferCloser

java.lang.Object
  extended by voldemort.store.readonly.io.ByteBufferCloser
All Implemented Interfaces:
java.io.Closeable

public class ByteBufferCloser
extends java.lang.Object
implements java.io.Closeable

A closeable which is smart enough to work on byte buffers.


Constructor Summary
ByteBufferCloser(java.nio.ByteBuffer buff)
           
 
Method Summary
 void close()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteBufferCloser

public ByteBufferCloser(java.nio.ByteBuffer buff)
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Throws:
java.io.IOException


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu