code: public void writeFile(CmsFile file, String name) throws IOException {
  
          if (m_isExportAsFiles) {
              writeFile2Rfs(file, name);
          } else {
              writeFile2Zip(file, name);
          }
      }
docs: Writes a single OpenCms VFS file to the export.<p>
  
  @param file the OpenCms VFS file to write
  @param name the name of the file in the export
  
  @throws IOException in case of file access issues