legacy.resource
Class CodecLibrary

java.lang.Object
  extended by legacy.resource.CodecLibrary

public class CodecLibrary
extends java.lang.Object

CodecLibrary.class contains codec maps for use with resource management classes

Author:
Benjamin Tarrant

Constructor Summary
CodecLibrary()
           
 
Method Summary
static Codec[] getFontCodecs()
          getFontCodecsFor(String ext) returns a list of codecs for this type
static Codec[] getImageCodecs()
          getImageCodecsFor(String ext) returns a list of codecs for this type
static Codec[] getMidiCodecs()
          getMidiCodecsFor(String ext) returns a list of codecs for this type
static Codec[] getPalletCodecs()
          getPalletCodecsFor(String ext) returns a list of codecs for this type
static Codec[] getSoundCodecs()
          getSoundCodecsFor(String ext) returns a list of codecs for this type
static void installCodecs(java.util.Properties codex)
          installCodecs(Properties) allows the end user to add additional codecs which the ResourceManager can use load resoruces for use.
the codex list allows is a properties list and sould be formated as follows
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodecLibrary

public CodecLibrary()
Method Detail

installCodecs

public static final void installCodecs(java.util.Properties codex)
installCodecs(Properties) allows the end user to add additional codecs which the ResourceManager can use load resoruces for use.
the codex list allows is a properties list and sould be formated as follows
 //Codex Properties File for my game
 mygame.codex.worldmap = "codec to read a map as an image"
 mygame.codex.tile = "codec to read a tile"

Parameters:
codex - a properties file containg a list of classes to use.

getImageCodecs

public static final Codec[] getImageCodecs()
getImageCodecsFor(String ext) returns a list of codecs for this type

Returns:
a list of codecs.

getPalletCodecs

public static final Codec[] getPalletCodecs()
getPalletCodecsFor(String ext) returns a list of codecs for this type

Returns:
a list of codecs.

getMidiCodecs

public static final Codec[] getMidiCodecs()
getMidiCodecsFor(String ext) returns a list of codecs for this type

Returns:
a list of codecs.

getSoundCodecs

public static final Codec[] getSoundCodecs()
getSoundCodecsFor(String ext) returns a list of codecs for this type

Returns:
a list of codecs.

getFontCodecs

public static final Codec[] getFontCodecs()
getFontCodecsFor(String ext) returns a list of codecs for this type

Returns:
a list of codecs.