public IRubyObject allocate(Ruby runtime, RubyClass klass) { return new JRubyObjectInputStream(runtime, klass); } };
public void load(Ruby runtime, boolean wrap) throws IOException { JRubyObjectInputStream.createJRubyObjectInputStream(runtime); } }
@JRubyMethod(name="read_object", alias="readObject") public IRubyObject readObject() { try { return Java.getInstance(getRuntime(),impl.readObject()); } catch (IOException ioe) { throw getRuntime().newIOErrorFromException(ioe); } catch (ClassNotFoundException cnfe) { throw getRuntime().newNameError(cnfe.getLocalizedMessage(), cnfe.getMessage(), cnfe); } }
@JRubyMethod(name="read_object", alias="readObject") public IRubyObject readObject() { try { return Java.getInstance(getRuntime(), impl.readObject()); } catch (IOException ioe) { throw getRuntime().newIOErrorFromException(ioe); } catch (ClassNotFoundException cnfe) { throw getRuntime().newNameError(cnfe.getLocalizedMessage(), cnfe.getMessage(), cnfe); } }
@JRubyMethod(name="read_object", alias="readObject") public IRubyObject readObject() { try { return Java.getInstance(getRuntime(), impl.readObject()); } catch (IOException ioe) { throw getRuntime().newIOErrorFromException(ioe); } catch (ClassNotFoundException cnfe) { throw getRuntime().newNameError(cnfe.getLocalizedMessage(), cnfe.getMessage(), cnfe); } }
public IRubyObject allocate(Ruby runtime, RubyClass klass) { return new JRubyObjectInputStream(runtime, klass); } };
public void load(Ruby runtime, boolean wrap) throws IOException { JRubyObjectInputStream.createJRubyObjectInputStream(runtime); } }
@JRubyMethod(name="read_object", alias="readObject") public IRubyObject readObject() { try { return Java.getInstance(getRuntime(),impl.readObject()); } catch (IOException ioe) { throw getRuntime().newIOErrorFromException(ioe); } catch (ClassNotFoundException cnfe) { throw getRuntime().newNameError(cnfe.getLocalizedMessage(), cnfe.getMessage(), cnfe); } }
public IRubyObject allocate(Ruby runtime, RubyClass klass) { return new JRubyObjectInputStream(runtime, klass); } };
public void load(Ruby runtime, boolean wrap) throws IOException { JRubyObjectInputStream.createJRubyObjectInputStream(runtime); } }
@JRubyMethod(name="initialize",required=1, visibility = Visibility.PRIVATE) public IRubyObject initialize(IRubyObject wrappedStream) { InputStream stream = (InputStream) wrappedStream.toJava(InputStream.class); try { impl = new JRubyObjectInputStreamImpl(getRuntime(), stream); } catch (IOException ioe) { throw getRuntime().newIOErrorFromException(ioe); } return this; }
public IRubyObject allocate(Ruby runtime, RubyClass klass) { return new JRubyObjectInputStream(runtime, klass); } };
public void load(Ruby runtime, boolean wrap) throws IOException { JRubyObjectInputStream.createJRubyObjectInputStream(runtime); } }
@JRubyMethod(name="initialize",required=1, visibility = Visibility.PRIVATE) public IRubyObject initialize(IRubyObject wrappedStream) { InputStream stream = (InputStream) wrappedStream.toJava(InputStream.class); try { impl = new JRubyObjectInputStreamImpl(getRuntime(), stream); } catch (IOException ioe) { throw getRuntime().newIOErrorFromException(ioe); } return this; }
@JRubyMethod(name="initialize",required=1, visibility = Visibility.PRIVATE) public IRubyObject initialize(IRubyObject wrappedStream) { InputStream stream = (InputStream)wrappedStream.toJava(InputStream.class); try { impl = new JRubyObjectInputStreamImpl(getRuntime(),stream); } catch (IOException ioe) { throw getRuntime().newIOErrorFromException(ioe); } return this; }
@JRubyMethod(name="initialize",required=1, visibility = Visibility.PRIVATE) public IRubyObject initialize(IRubyObject wrappedStream) { InputStream stream = (InputStream)wrappedStream.toJava(InputStream.class); try { impl = new JRubyObjectInputStreamImpl(getRuntime(),stream); } catch (IOException ioe) { throw getRuntime().newIOErrorFromException(ioe); } return this; }
@JRubyMethod(name="close") public IRubyObject close() { try { impl.close(); } catch (IOException ioe) { throw getRuntime().newIOErrorFromException(ioe); } return this; }
@JRubyMethod(name="close") public IRubyObject close() { try { impl.close(); } catch (IOException ioe) { throw getRuntime().newIOErrorFromException(ioe); } return this; }
@JRubyMethod(name="close") public IRubyObject close() { try { impl.close(); } catch (IOException ioe) { throw getRuntime().newIOErrorFromException(ioe); } return this; }
@JRubyMethod(name="close") public IRubyObject close() { try { impl.close(); } catch (IOException ioe) { throw getRuntime().newIOErrorFromException(ioe); } return this; }