to.etc.domui.util.resources
Class ByteArrayResourceRef

java.lang.Object
  extended by to.etc.domui.util.resources.ByteArrayResourceRef
All Implemented Interfaces:
IIsModified, IResourceRef

public final class ByteArrayResourceRef
extends java.lang.Object
implements IResourceRef, IIsModified


Constructor Summary
ByteArrayResourceRef(byte[] data, java.lang.String name, ResourceDependencies deps)
           
 
Method Summary
 boolean exists()
          Return T if this resource actually exists.
 java.io.InputStream getInputStream()
          Returns the input stream for the resource.
 boolean isModified()
          Returns T if this resource has been modified.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ByteArrayResourceRef

public ByteArrayResourceRef(byte[] data,
                            java.lang.String name,
                            ResourceDependencies deps)
Method Detail

isModified

public boolean isModified()
Description copied from interface: IIsModified
Returns T if this resource has been modified. Must be thread-safe.

Specified by:
isModified in interface IIsModified
Returns:

exists

public boolean exists()
Description copied from interface: IResourceRef
Return T if this resource actually exists.

Specified by:
exists in interface IResourceRef
Returns:

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.lang.Exception
Description copied from interface: IResourceRef
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.

Specified by:
getInputStream in interface IResourceRef
Returns:
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object