For jruby/jruby#940, we need a factory method or constructor method exposed that can take an existing fd.
For jruby/jruby#940, we need a factory method or constructor method exposed that can take an existing fd.