net.sf.freecol.common.resources
Class AudioResource

java.lang.Object
  extended by net.sf.freecol.common.resources.Resource
      extended by net.sf.freecol.common.resources.AudioResource

public class AudioResource
extends Resource

A Resource wrapping a File containing sounds.

See Also:
Resource

Field Summary
private  java.io.File file
           
private static java.util.logging.Logger logger
           
 
Constructor Summary
AudioResource(java.io.File file)
           
AudioResource(java.net.URI resourceLocator)
          Do not use directly.
 
Method Summary
 java.io.File getAudio()
          Gets the file represented by this resource.
 void preload()
          Preloading is a noop for this resource type.
 
Methods inherited from class net.sf.freecol.common.resources.Resource
getResourceLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final java.util.logging.Logger logger

file

private java.io.File file
Constructor Detail

AudioResource

public AudioResource(java.io.File file)

AudioResource

AudioResource(java.net.URI resourceLocator)
        throws java.lang.Exception
Do not use directly.

Parameters:
resourceLocator - The URI used when loading this resource.
Throws:
java.lang.Exception
See Also:
ResourceFactory.createResource(URI)
Method Detail

preload

public void preload()
Preloading is a noop for this resource type.

Specified by:
preload in class Resource

getAudio

public java.io.File getAudio()
Gets the file represented by this resource.

Returns:
The File for this resource.