Package railo.runtime.functions.other

Source Code of railo.runtime.functions.other.WriteOutput

/**
* Implements the CFML Function writeoutput
*/
package railo.runtime.functions.other;

import java.io.IOException;

import railo.runtime.PageContext;
import railo.runtime.exp.NativeException;
import railo.runtime.exp.PageException;
import railo.runtime.ext.function.Function;

public final class WriteOutput implements Function {
    public static boolean call(PageContext pc , String string) throws PageException {
        try {
            pc.forceWrite(string);
        } catch (IOException e) {
            throw new NativeException(e);
        }
        return true;
    }
}
TOP

Related Classes of railo.runtime.functions.other.WriteOutput

TOP
Copyright © 2018 www.massapi.com. 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.