Java FileOutputStream Write save(byte[] bytes, File path)

Here you can find the source of save(byte[] bytes, File path)

Description

save

License

Open Source License

Declaration

public static void save(byte[] bytes, File path) throws FileNotFoundException, IOException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.File;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;

import java.io.IOException;

public class Main {
    public static void save(byte[] bytes, File path) throws FileNotFoundException, IOException {
        if (bytes != null) {
            FileOutputStream fos = new FileOutputStream(path);
            fos.write(bytes);/*from  www.j  a  v  a  2  s. c  o m*/
            fos.close();
        }
    }
}

Related

  1. copyFile(InputStream sourceFileIs, File destDirFile, String destFileName)
  2. copyFileFromAssets(InputStream inputStream, String pathToWrite)
  3. copyFileUsingFileStreams(InputStream source, File dest)
  4. copyFileUsingStream(InputStream sourceStream, File dest)
  5. save(byte[] bs, String fn)
  6. save(byte[] data, String path)
  7. save(File file, byte[] bytes)
  8. save(File file, byte[] content)
  9. save(File file, byte[] content)