to.etc.domui.util.resources
Interface IResourceRef

All Known Implementing Classes:
ByteArrayResourceRef, ProductionClassResourceRef, ReloadingClassResourceRef, WebappResourceRef

public interface IResourceRef

A reference to some stream resource which can be read to create something else, and which is changeable somehow. This gets used where generated resources need to be regenerated if one of their dependencies have changed.

Author:
Frits Jalvingh Created on Oct 19, 2009

Method Summary
 boolean exists()
          Return T if this resource actually exists.
 java.io.InputStream getInputStream()
          Returns the input stream for the resource.
 

Method Detail

exists

boolean exists()
Return T if this resource actually exists.

Returns:

getInputStream

@Nullable
java.io.InputStream getInputStream()
                                   throws java.lang.Exception
Returns the input stream for the resource. This will return a new stream for every call. It returns null if the resource does not exist.

Returns:
Throws:
java.lang.Exception