Java FileOutputStream Write Byte Array writeBytes(File file, byte[] ba)

Here you can find the source of writeBytes(File file, byte[] ba)

Description

write Bytes

License

Open Source License

Declaration

public static void writeBytes(File file, byte[] ba) throws IOException 

Method Source Code

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

import java.io.File;

import java.io.FileOutputStream;

import java.io.IOException;

public class Main {
    public static void writeBytes(File file, byte[] ba) throws IOException {
        FileOutputStream a = null;
        try {//  ww  w .jav a  2 s .c om
            a = new FileOutputStream(file);
            a.write(ba);
        } finally {
            if (a != null) {
                a.close();
            }
        }
    }
}

Related

  1. writeBytes(File aFile, byte theBytes[])
  2. writeBytes(File dest, byte[] data, int off, int len, boolean append)
  3. writeBytes(File f, byte[] b)
  4. writeBytes(File f, byte[] data)
  5. writeBytes(File file, byte[] arr)
  6. writeBytes(File file, byte[] bytes)
  7. writeBytes(File file, byte[] bytes)
  8. writeBytes(File file, byte[] bytes)
  9. writeBytes(File file, byte[] bytes)