code: static public void generateFiles(Collection<String> paths, String fileName,
  			InputStream is) throws IOException {
  		Vector<FileOutputStream> vecFiles = new Vector<FileOutputStream>();
  		byte[] ba = new byte[102400];
  		int len;
  
  		for (String path : paths)
  			vecFiles.add(new FileOutputStream(path + fileName));
  
  		len = is.read(ba);
  		while (len > 0) {
  			for (FileOutputStream os : vecFiles)
  				os.write(ba, 0, len);
  			len = is.read(ba);
  		}
  
  		for (FileOutputStream os : vecFiles)
  			os.close();
  	}
docs: 生成指定的文件
  
  @throws IOException