com.tirix.anim8or
Interface Anim8orLoader.ResourceLoader

All Known Implementing Classes:
DefaultResourceLoader
Enclosing class:
Anim8orLoader

public static interface Anim8orLoader.ResourceLoader

An interface encapsulating the resource access.


Method Summary
 Image openImage(String resourceName)
          Opens the image using the resource loader specific method.
 InputStream openResource(String resourceName)
          Opens the resource using the resource loader specific method.
 InputStream openResource(URL url)
          Opens the URL using the resource loader specific method.
 

Method Detail

openResource

InputStream openResource(String resourceName)
                         throws IOException
Opens the resource using the resource loader specific method.

Parameters:
resourceName - the name of the resource to be opened
Returns:
the resource contents as an InputStream
Throws:
IOException - if the resource cannot be accessed

openImage

Image openImage(String resourceName)
                throws IOException
Opens the image using the resource loader specific method.

Parameters:
resourceName - the name of the image resource to be opened
Returns:
the resource contents as an Image object
Throws:
IOException - if the image resource cannot be accessed

openResource

InputStream openResource(URL url)
                         throws IOException
Opens the URL using the resource loader specific method.

Parameters:
url - the URL of the resource to open.
Returns:
the resource contents as an InputStream
Throws:
IOException - if the resource cannot be accessed