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;
  }
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.

@param sourceBytes bytes to be handled.
@param destinationOutputStream destination output stream to be handled.
@return true if write source bytes into destination output stream success.
@throws IOException