@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="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="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="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="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="close") public IRubyObject close() { try { impl.close(); } catch (IOException ioe) { throw getRuntime().newIOErrorFromException(ioe); } return this; }
@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="close") public IRubyObject close() { try { impl.close(); } catch (IOException ioe) { throw getRuntime().newIOErrorFromException(ioe); } return this; }