org.loom.resources
Interface CompiledWebResource
- All Known Implementing Classes:
- AbstractCompiledWebResource, CompiledInMemoryWebResource, CompiledToDiskWebResource
public interface CompiledWebResource
The contents of a web resource (javascript or css file)
This class contains the result of the concatenation and
minification (obfuscation) of one or multiple files, and should be immutable.
getName
java.lang.String getName()
getMd5
java.lang.String getMd5()
- Returns:
- the calculated MD5 hash of this file
getInputStream
java.io.InputStream getInputStream()
- Returns:
- a stream to retrieve the resource data
getGzippedInputStream
java.io.InputStream getGzippedInputStream()
- Returns:
- a stream to retrieve a gzipped version of the resource data
getLength
long getLength()
- Returns:
- the length of the resource data file
getGzippedLength
long getGzippedLength()
- Returns:
- the length of the gzipped resource data file
render
void render(AbstractWebResourceTag tag)
throws javax.servlet.jsp.JspException,
java.io.IOException
- render the tag for this compiled resource
- Throws:
javax.servlet.jsp.JspException
java.io.IOException