file mode r+ for jruby