code: public void loadFile(File file)
     {
        InputStream is = null;
  
        try
        {
           is = new FileInputStream(file);
           POIFSFileSystem fs = new POIFSFileSystem(is);
           m_model.setFile(fs);
        }
  
        catch (IOException ex)
        {
           throw new RuntimeException(ex);
        }
  
        finally
        {
           StreamHelper.closeQuietly(is);
        }
     }
docs: Command to load a file.
  
  @param file file to load