com.clickntap.stripecubeui.CssSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of StripecubeUi Show documentation
Show all versions of StripecubeUi Show documentation
Css / Javascript Merger and Minimizer integrated with Stripecube Web App Development
The newest version!
package com.clickntap.stripecubeui;
import java.io.OutputStream;
import com.clickntap.hub.BO;
import com.clickntap.stripecubeui.bo.UiResource;
import com.clickntap.stripecubeui.bo.UiSet;
public class CssSet extends BO {
public String getContentType() {
return "text/css";
}
public void copyTo(OutputStream out) throws Exception {
UiSet set = getApp().getBO(UiSet.class, getId());
for (UiResource resource : set.getResources()) {
if ("css".equals(resource.getType())) {
out.write(resource.getContent().getBytes());
out.write('\n');
out.write('\n');
}
}
}
}