@Override public byte[] readByteArray(String filePath,long offset,int length){
  FileChannel fileChannel=updateCache(filePath);
  ByteBuffer byteBffer=read(fileChannel,length,offset);
  return byteBffer.array();
}

@ Override public byte [ ] readByteArray ( String filePath , long offset , int length ) { FileChannel fileChannel = updateCache ( filePath ) ; ByteBuffer byteBffer = read ( fileChannel , length , offset ) ; return byteBffer . array ( ) ; }
this method will be used to read the byte array from file based on offset and length ( number of bytes ) need to read
