Java FileOutputStream Create writeFile(String fileOutput, byte[] data)

Here you can find the source of writeFile(String fileOutput, byte[] data)

Description

write File

License

LGPL

Declaration

public static void writeFile(String fileOutput, byte[] data) throws IOException 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.io.FileOutputStream;
import java.io.IOException;

import java.io.OutputStream;

public class Main {
    public static void writeFile(String fileOutput, byte[] data) throws IOException {
        OutputStream outputStream = new FileOutputStream(fileOutput);
        try {/*w  w w.j  a  v a2 s.  com*/
            outputStream.write(data);
        } finally {
            outputStream.close();
        }
    }
}

Related

  1. writeFile(String directoryPath, String filename, byte[] bytes)
  2. writeFile(String f, String s)
  3. writeFile(String file, byte[]... data)
  4. writeFile(String file, byte[]... data)
  5. writeFile(String fileName)
  6. writeFile(String filePath, byte[] bytes)
  7. writeFile(String filePath, Object obj)
  8. writeFile(String filePathName, Object obj)
  9. writeFile(String p_filename, String p_buffer)