openlsd.common.datatype
Class LSDFileChannelByteBuffer

java.lang.Object
  extended by openlsd.common.datatype.LSDFileChannelByteBuffer

public class LSDFileChannelByteBuffer
extends java.lang.Object

Class to handle at the same time one FileChannel and one ByteBuffer

Author:
Frederic BREGIER LGPL 2007

Field Summary
 java.nio.ByteBuffer byteBuffer
          ByteBuffer
 java.nio.channels.FileChannel fileChannel
          FileChannel
 
Constructor Summary
LSDFileChannelByteBuffer(java.nio.channels.FileChannel fileChannel)
          Constructor from fileChannel (in or out)
 
Method Summary
 void reinit(int size)
          Reinialized the ByteBuffer if necessary according to the size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileChannel

public java.nio.channels.FileChannel fileChannel
FileChannel


byteBuffer

public java.nio.ByteBuffer byteBuffer
ByteBuffer

Constructor Detail

LSDFileChannelByteBuffer

public LSDFileChannelByteBuffer(java.nio.channels.FileChannel fileChannel)
Constructor from fileChannel (in or out)

Parameters:
fileChannel -
Method Detail

reinit

public void reinit(int size)
Reinialized the ByteBuffer if necessary according to the size

Parameters:
size -