code: public static LBuffer loadFrom(File file) throws IOException {
          FileChannel fin = new FileInputStream(file).getChannel();
          long fileSize = fin.size();
          if (fileSize > Integer.MAX_VALUE)
              throw new IllegalArgumentException("Cannot load from file more than 2GB: " + file);
          LBuffer b = new LBuffer((int) fileSize);
          long pos = 0L;
          WritableChannelWrap ch = new WritableChannelWrap(b);
          while (pos < fileSize) {
              pos += fin.transferTo(0, fileSize, ch);
          }
          return b;
      }
docs: Create an LBuffer from a given file.
  @param file
  @return
  @throws IOException