Examples of CurrentResourceContext


Examples of org.richfaces.resource.optimizer.faces.CurrentResourceContext

        try {
            reader = new InputStreamReader(in, charset);
            writer = new OutputStreamWriter(out, charset);

            CurrentResourceContext crc = (CurrentResourceContext) CurrentResourceContext.getInstance(FacesContext.getCurrentInstance());

            // add comment to the packed resource before writing the file into stream
            writer.write(String.format("/* resource: %s */\n", ResourceKey.create(crc.getResource())));
            writer.flush();

            StreamUtils.copy(in, out);

            writer.write("\n\n");
View Full Code Here

Examples of org.richfaces.resource.optimizer.faces.CurrentResourceContext

        try {
            reader = new InputStreamReader(in, charset);
            writer = new OutputStreamWriter(out, charset);

            CurrentResourceContext crc = (CurrentResourceContext) CurrentResourceContext.getInstance(FacesContext.getCurrentInstance());

            // add comment to the packed resource before writing the file into stream
            writer.write(String.format("// resource: %s\n", ResourceKey.create(crc.getResource())));
            writer.flush();

            ByteStreams.copy(in, out);

            if (!closeAtFinish) {
View Full Code Here
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.