Package org.jnode.util

Examples of org.jnode.util.ProxyStreamException


        Proclet procletContext = Proclet.currentProcletContext();
        int pid = (procletContext == null) ?
                ProcletIOContext.GLOBAL_STREAM_ID : procletContext.getPid();
        InputStream is = streamMap.get(pid);
        if (is == null) {
            throw new ProxyStreamException(
                    "Proclet stream not set (fd = " + fd + ")");
        } else if (is instanceof ProcletProxyStream) {
            throw new ProxyStreamException(
                    "Proclet stream points to another proclet stream (fd = " + fd + ")");
        }
        return is;
    }
View Full Code Here


    private PrintStream proxiedPrintStream() throws ProxyStreamException {
        Proclet procletContext = Proclet.currentProcletContext();
        int pid = (procletContext == null) ? ProcletIOContext.GLOBAL_STREAM_ID : procletContext.getPid();
        PrintStream ps = getProxiedStream(pid);
        if (ps == null) {
            throw new ProxyStreamException(
                    "Proclet stream not set (fd = " + fd + ")");
        } else if (ps instanceof ProcletProxyStream) {
            throw new ProxyStreamException(
                    "Proclet stream points to another proclet stream (fd = " + fd + ")");
        }
        return ps;
    }
View Full Code Here

TOP

Related Classes of org.jnode.util.ProxyStreamException

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.