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

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

Description

write Bytes

License

Open Source License

Declaration

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

Method Source Code

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

import java.io.*;

public class Main {
    public static void writeBytes(File file, byte[] bytes)
            throws IOException {
        BufferedOutputStream bos = new BufferedOutputStream(
                new FileOutputStream(file));
        bos.write(bytes);//from  w w w.  j ava 2s.  com
        bos.flush();
        bos.close();
    }
}

Related

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