src/main/java/com/vouov/vtools/document/POIUtil.java
public static void writeToFile(String fileName, Workbook workbook) {
        OutputStream os;
        try {
            os = new BufferedOutputStream(new FileOutputStream(fileName));
            workbook.write(os);
            os.flush();
            os.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
/**
     * Saves workbook to file
     *
     * @param fileName - File name to save workbook
     * @param workbook - Workbook to save
     */
Saves workbook to file
@param fileName - File name to save workbook
@param workbook - Workbook to save
Saves workbook to file @param fileName - File name to save workbook @param workbook - Workbook to save
public static void writeToFile(String fileName, Workbook workbook) {
        OutputStream os;
        try {
            os = new BufferedOutputStream(new FileOutputStream(fileName));
            workbook.write(os);
            os.flush();
            os.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
public static void writeToFile ( String fileName , Workbook workbook ) { OutputStream os ; try { os = new BufferedOutputStream ( new FileOutputStream ( fileName ) ) ; workbook . write ( os ) ; os . flush ( ) ; os . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
Saves workbook to file
 @param fileName - File name to save workbook
 @param workbook - Workbook to save
Saves workbook to file @param fileName - File name to save workbook @param workbook - Workbook to save