de.esw.eengine.core
Interface IResource

All Known Implementing Classes:
AbstractResource, Font, Image

public interface IResource

Since:
1.0
Version:
$Id: IResource.java 82 2005-06-17 19:03:29Z markusw $
Author:
markusw

Method Summary
 void dispose()
          Frees the memory occupied and disposes this resource.
 ICodec getCodec()
           
 int getId()
           
 java.net.URL getURL()
           
 void load()
          Loads the IResource.
 void save()
          Saves the IResource.
 

Method Detail

getId

int getId()
Returns:
The resource id this IResource is located at

getURL

java.net.URL getURL()
Returns:
The locator of this IResource

getCodec

ICodec getCodec()
Returns:
ICoded responsible for this resource

load

void load()
          throws EEngineException
Loads the IResource.

Throws:
EEngineException - Thrown on loading errors

save

void save()
          throws EEngineException
Saves the IResource.

Throws:
EEngineException - Thrown on saving errors

dispose

void dispose()
Frees the memory occupied and disposes this resource.