Package org.jruby.util.io

Examples of org.jruby.util.io.IOEncodable$ConvConfig


                vmode(pm, args[1]);
                break;
        }
       
        int[] oflags_p = {0}, fmode_p = {0};
        IOEncodable convconfig = new ConvConfig();
        EncodingUtils.extractModeEncoding(context, convconfig, pm, options, oflags_p, fmode_p);
        int perm = (vperm(pm) != null && !vperm(pm).isNil()) ?
                RubyNumeric.num2int(vperm(pm)) : 0666;
       
        return fileOpenGeneric(context, filename, oflags_p[0], fmode_p[0], convconfig, perm);
View Full Code Here


        int perm;
        IRubyObject cmd;
       
        Object pm = EncodingUtils.vmodeVperm(vmode, vperm);

        IOEncodable convconfig = new IOEncodable.ConvConfig();
        EncodingUtils.extractModeEncoding(context, convconfig, pm, opt, oflags_p, fmode_p);
        perm = (vperm(pm) == null || vperm(pm).isNil()) ? 0666 : RubyNumeric.num2int(vperm(pm));

        if (!(cmd = PopenExecutor.checkPipeCommand(context, filename)).isNil()) {
            return PopenExecutor.pipeOpen(context, cmd, OpenFile.ioOflagsModestr(runtime, oflags_p[0]), fmode_p[0], convconfig);
View Full Code Here

TOP

Related Classes of org.jruby.util.io.IOEncodable$ConvConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.