Java OutputStream Write Byte Array writeBytes(OutputStream os, byte[] b)

Here you can find the source of writeBytes(OutputStream os, byte[] b)

Description

write Bytes

License

Open Source License

Declaration

public static void writeBytes(OutputStream os, byte[] b) throws IOException 

Method Source Code


//package com.java2s;
// See LICENSE.txt for license information

import java.io.IOException;
import java.io.OutputStream;

public class Main {
    public static void writeBytes(OutputStream os, byte[] b) throws IOException {
        os.write(b, 0, b.length);/*from  w  w  w .j  a  va  2 s .c  om*/
    }

    public static void writeBytes(OutputStream os, byte[] b, int off, int len) throws IOException {
        os.write(b, off, len);
    }
}

Related

  1. writeBytes(byte[] data, OutputStream out)
  2. writeBytes(byte[] data, OutputStream out)
  3. writeBytes(byte[] data, OutputStream stream)
  4. writeBytes(int[] data, OutputStream out)
  5. writeBytes(OutputStream os, byte[] b)
  6. writeBytes(OutputStream out, byte[] data)
  7. writeBytes(OutputStream output, Object value)
  8. writeBytes(OutputStream outputStream, byte[] data)