Package io.apigee.trireme.core.internal.handles

Examples of io.apigee.trireme.core.internal.handles.AbstractHandle


            if (!inNewExpr) {
                return cx.newObject(ctorObj, CLASS_NAME);
            }

            ScriptRunner runtime = (ScriptRunner)cx.getThreadLocal(ScriptRunner.RUNNER);
            AbstractHandle handle = objArg(args, 0, AbstractHandle.class, true);
            return new ConsoleWrapImpl(handle, runtime);
        }
View Full Code Here


            if (!inNewExpr) {
                return cx.newObject(ctorObj, CLASS_NAME, args);
            }

            ScriptRunner runtime = (ScriptRunner)cx.getThreadLocal(ScriptRunner.RUNNER);
            AbstractHandle handle = objArg(args, 0, AbstractHandle.class, true);
            return new StreamWrapImpl(handle, runtime);
        }
View Full Code Here

        @SuppressWarnings("unused")
        public Object getStdoutHandle()
        {
            Context cx = Context.getCurrentContext();

            AbstractHandle streamHandle;
            if ((runner.getStdout() == System.out) && ConsoleHandle.isConsoleSupported()) {
                streamHandle = new ConsoleHandle(runner);
                return createConsoleHandle(cx, streamHandle);
            } else {
                streamHandle = new JavaOutputStreamHandle(runner.getStdout());
View Full Code Here

        @SuppressWarnings("unused")
        public Object getStdinHandle()
        {
            Context cx = Context.getCurrentContext();

            AbstractHandle streamHandle;
            if ((runner.getStdin() == System.in) && ConsoleHandle.isConsoleSupported()) {
                streamHandle = new ConsoleHandle(runner);
                return createConsoleHandle(cx, streamHandle);
            } else {
                streamHandle = new JavaInputStreamHandle(runner.getStdin(), runner);
View Full Code Here

TOP

Related Classes of io.apigee.trireme.core.internal.handles.AbstractHandle

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.