public static void setFileContents(File file, ByteBuffer contents) throws IOException {
    setFileContents(file, contents, false);
  }
public static void setFileContents ( File file , ByteBuffer contents ) throws IOException { setFileContents ( file , contents , false ) ; }
Writes the specified byte array to a file.
@param file The <code>File</code> to write.
@param contents The byte array to write to the file.
@throws IOException If the file could not be written.