public static void write ( byte [ ] byteArray , OutputStream out ) throws IOException { if ( byteArray != null ) { out . write ( byteArray ) ; } }
Writes all the contents of a byte array to an OutputStream .