public static boolean write ( final byte [ ] sourceBytes , final OutputStream destinationOutputStream ) throws IOException { BufferedOutputStream bufferedOutputStream = new BufferedOutputStream ( destinationOutputStream ) ; bufferedOutputStream . write ( sourceBytes , 0 , sourceBytes . length ) ; bufferedOutputStream . flush ( ) ; return true ; }
Write source bytes into destination output stream .