docs: public void restoreFromFile(File file) throws IOException
      {
          byte[] rawData = new byte[(int) file.length()];
          ByteBuffer bufData = null;
          FileInputStream fis = null;
          DataInputStream dis = null;
          try {
              fis = new FileInputStream(file);
              dis = new DataInputStream(fis);
              dis.readFully(rawData);
              bufData = ByteBuffer.wrap(rawData);
              restoreFromBuffer(bufData);
          }
          finally {
              if (dis != null) {
                  dis.close();
              }
              if (fis != null) {
                  fis.close();
              }
          }
      }