public static int set_file_buffer(Env env, StreamResource stream,
public static int set_file_buffer(Env env, BinaryOutput stream,
  public static int set_file_buffer(Env env, StreamResource stream,                                    int bufferSize)  {    return StreamModule.stream_set_write_buffer(env, stream, bufferSize);  }