Examples of newErrnoEINVALError()


Examples of org.jruby.Ruby.newErrnoEINVALError()

        } catch (IOException ex) {
            throw runtime.newIOErrorFromException(ex);
        } catch (BadDescriptorException ex) {
            throw runtime.newErrnoEBADFError();
        } catch (InvalidValueException e) {
            throw runtime.newErrnoEINVALError();
        }
       
        return JavaUtil.convertJavaToUsableRubyObject(context.getRuntime(), io.getInStream());
    }
   
View Full Code Here

Examples of org.jruby.Ruby.newErrnoEINVALError()

        } catch (IOException ex) {
            throw runtime.newIOErrorFromException(ex);
        } catch (BadDescriptorException ex) {
            throw runtime.newErrnoEBADFError();
        } catch (InvalidValueException e) {
            throw runtime.newErrnoEINVALError();
        }
       
        return JavaUtil.convertJavaToUsableRubyObject(context.getRuntime(), io.getOutStream());
    }
   
View Full Code Here

Examples of org.jruby.Ruby.newErrnoEINVALError()

            }
           
            return runtime.newFixnum(stream.read(buffer));

        } catch (InvalidValueException ex) {
            throw runtime.newErrnoEINVALError();
        } catch (EOFException e) {
            return runtime.newFixnum(-1);
        } catch (BadDescriptorException e) {
            throw runtime.newErrnoEBADFError();
        } catch (IOException e) {
View Full Code Here

Examples of org.jruby.Ruby.newErrnoEINVALError()

        } catch (IOException ex) {
            throw runtime.newIOErrorFromException(ex);
        } catch (BadDescriptorException ex) {
            throw runtime.newErrnoEBADFError();
        } catch (InvalidValueException e) {
            throw runtime.newErrnoEINVALError();
        }
       
        return JavaUtil.convertJavaToUsableRubyObject(context.getRuntime(), io.getInStream());
    }
   
View Full Code Here

Examples of org.jruby.Ruby.newErrnoEINVALError()

        } catch (IOException ex) {
            throw runtime.newIOErrorFromException(ex);
        } catch (BadDescriptorException ex) {
            throw runtime.newErrnoEBADFError();
        } catch (InvalidValueException e) {
            throw runtime.newErrnoEINVALError();
        }
       
        return JavaUtil.convertJavaToUsableRubyObject(context.getRuntime(), io.getOutStream());
    }
View Full Code Here

Examples of org.jruby.Ruby.newErrnoEINVALError()

            }
           
            return runtime.newFixnum(stream.read(buffer));

        } catch (InvalidValueException ex) {
            throw runtime.newErrnoEINVALError();
        } catch (EOFException e) {
            return runtime.newFixnum(-1);
        } catch (BadDescriptorException e) {
            throw runtime.newErrnoEBADFError();
        } catch (IOException e) {
View Full Code Here

Examples of org.jruby.Ruby.newErrnoEINVALError()

        } catch (IOException ex) {
            throw runtime.newIOErrorFromException(ex);
        } catch (BadDescriptorException ex) {
            throw runtime.newErrnoEBADFError();
        } catch (InvalidValueException e) {
            throw runtime.newErrnoEINVALError();
        }

        return JavaUtil.convertJavaToUsableRubyObject(context.runtime, io.getInStream());
    }
   
View Full Code Here

Examples of org.jruby.Ruby.newErrnoEINVALError()

        } catch (IOException ex) {
            throw runtime.newIOErrorFromException(ex);
        } catch (BadDescriptorException ex) {
            throw runtime.newErrnoEBADFError();
        } catch (InvalidValueException e) {
            throw runtime.newErrnoEINVALError();
        }

        return JavaUtil.convertJavaToUsableRubyObject(context.runtime, io.getOutStream());
    }
View Full Code Here

Examples of org.jruby.Ruby.newErrnoEINVALError()

                break;
            case 2:
                offset += ptr.string.size();
                break;
            default:
                throw runtime.newErrnoEINVALError("invalid whence");
        }
       
        if (offset < 0) throw runtime.newErrnoEINVALError("invalid seek value");

        ptr.pos = offset;
View Full Code Here

Examples of org.jruby.Ruby.newErrnoEINVALError()

                break;
            default:
                throw runtime.newErrnoEINVALError("invalid whence");
        }
       
        if (offset < 0) throw runtime.newErrnoEINVALError("invalid seek value");

        ptr.pos = offset;

        return RubyFixnum.zero(runtime);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.