var myOpenFile = new OpenFile(); var people = myOpenFile.people; myOpenFile.getGraph(); console.log(people);
static OpenFile of = new OpenFile(); // should be static for accessing within main method public static void main(String[] args) { of.createFile(); intro(); createAndShowRibbon(); createAndShowNormalUI(); }
@Deprecated public RubyIO(Ruby runtime, RubyClass cls, ShellLauncher.POpenProcess process, RubyHash options, IOOptions ioOptions) { super(runtime, cls); ioOptions = updateIOOptionsFromOptions(runtime.getCurrentContext(), (RubyHash) options, ioOptions); openFile = new OpenFile(); setupPopen(ioOptions.getModeFlags(), process); }
protected void MakeOpenFile() { if (openFile != null) { Ruby runtime = getRuntime(); ioClose(runtime); openFile.finalize(runtime, false); openFile = null; } openFile = new OpenFile(); }
@Deprecated public RubyIO(Ruby runtime, RubyClass cls, ShellLauncher.POpenProcess process, RubyHash options, IOOptions ioOptions) { super(runtime, cls); ioOptions = updateIOOptionsFromOptions(runtime.getCurrentContext(), (RubyHash) options, ioOptions); openFile = new OpenFile(); setupPopen(ioOptions.getModeFlags(), process); }
protected void MakeOpenFile() { if (openFile != null) { Ruby runtime = getRuntime(); ioClose(runtime); openFile.finalize(runtime, false); openFile = null; } openFile = new OpenFile(); }
public RubyIO(Ruby runtime, InputStream inputStream) { super(runtime, runtime.getIO()); if (inputStream == null) { throw runtime.newRuntimeError("Opening null stream"); } openFile = new OpenFile(); try { openFile.setMainStream(ChannelStream.open(runtime, new ChannelDescriptor(Channels.newChannel(inputStream)))); } catch (InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } openFile.setMode(OpenFile.READABLE); }
public RubyIO(Ruby runtime, InputStream inputStream) { super(runtime, runtime.getIO()); if (inputStream == null) { throw runtime.newRuntimeError("Opening null stream"); } openFile = new OpenFile(); try { openFile.setMainStream(ChannelStream.open(runtime, new ChannelDescriptor(Channels.newChannel(inputStream)))); } catch (InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } openFile.setMode(OpenFile.READABLE); }
public final OpenFile MakeOpenFile() { Ruby runtime = getRuntime(); if (openFile != null) { rbIoClose(runtime.getCurrentContext()); rb_io_fptr_finalize(runtime, openFile); openFile = null; } openFile = new OpenFile(runtime.getNil()); runtime.addInternalFinalizer(openFile); return openFile; }
public final OpenFile MakeOpenFile() { Ruby runtime = getRuntime(); if (openFile != null) { rbIoClose(runtime.getCurrentContext()); rb_io_fptr_finalize(runtime, openFile); openFile = null; } openFile = new OpenFile(runtime.getNil()); runtime.addInternalFinalizer(openFile); return openFile; }
public RubyIO(Ruby runtime, OutputStream outputStream, boolean autoclose) { super(runtime, runtime.getIO()); // We only want IO objects with valid streams (better to error now). if (outputStream == null) { throw runtime.newRuntimeError("Opening null stream"); } openFile = new OpenFile(); try { openFile.setMainStream(ChannelStream.open(runtime, new ChannelDescriptor(Channels.newChannel(outputStream)), autoclose)); } catch (InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } openFile.setMode(OpenFile.WRITABLE | OpenFile.APPEND); }
public RubyIO(Ruby runtime, OutputStream outputStream, boolean autoclose) { super(runtime, runtime.getIO()); // We only want IO objects with valid streams (better to error now). if (outputStream == null) { throw runtime.newRuntimeError("Opening null stream"); } openFile = new OpenFile(); try { openFile.setMainStream(ChannelStream.open(runtime, new ChannelDescriptor(Channels.newChannel(outputStream)), autoclose)); } catch (InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } openFile.setMode(OpenFile.WRITABLE | OpenFile.APPEND); }
public RubyIO(Ruby runtime, Channel channel) { super(runtime, runtime.getIO()); // We only want IO objects with valid streams (better to error now). if (channel == null) { throw runtime.newRuntimeError("Opening null channel"); } openFile = new OpenFile(); try { openFile.setMainStream(ChannelStream.open(runtime, new ChannelDescriptor(channel))); } catch (InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } openFile.setMode(openFile.getMainStream().getModes().getOpenFileFlags()); }
public RubyIO(Ruby runtime, Channel channel) { super(runtime, runtime.getIO()); // We only want IO objects with valid streams (better to error now). if (channel == null) { throw runtime.newRuntimeError("Opening null channel"); } openFile = new OpenFile(); try { openFile.setMainStream(ChannelStream.open(runtime, new ChannelDescriptor(channel))); } catch (InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } openFile.setMode(openFile.getMainStream().getModes().getOpenFileFlags()); }
public RubyIO(Ruby runtime, STDIO stdio) { super(runtime, runtime.getIO()); openFile = new OpenFile(); ChannelDescriptor descriptor; Stream mainStream;
public RubyIO(Ruby runtime, STDIO stdio) { super(runtime, runtime.getIO()); openFile = new OpenFile(); ChannelDescriptor descriptor; Stream mainStream;