public static void copy ( byte [ ] in , OutputStream out ) throws IOException { Assert . notNull ( in , "No input byte array specified" ) ; Assert . notNull ( out , "No OutputStream specified" ) ; out . write ( in ) ; }
Copy the contents of the given byte array to the given OutputStream . Leaves the stream open when done .