Package org.richfaces.resource.optimizer.faces

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


        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

Related Classes of org.richfaces.resource.optimizer.faces.CurrentResourceContext

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.