it.tidalwave.imageio.raw
Class TagRegistry

java.lang.Object
  extended by it.tidalwave.imageio.raw.TagRegistry

public class TagRegistry
extends java.lang.Object

Version:
CVS $Id: TagRegistry.java,v 1.3 2006/02/13 22:41:14 fabriziogiudici Exp $
Author:
Fabrizio Giudici

Method Summary
 java.lang.Object getKey(int key)
           
 java.lang.String getName()
          Returns the registry name.
static TagRegistry getRegistry(java.lang.String name)
          Retrieves or creates a registry with the given name.
 java.lang.String getTagName(int code)
          Retrieves a tag name from its code.
 java.lang.String register(int code, java.lang.String name)
          Registers a new tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Returns the registry name.

Returns:
the registry name

getRegistry

public static TagRegistry getRegistry(java.lang.String name)
Retrieves or creates a registry with the given name. If the registry does not exist, a new instance is created.

Parameters:
name - the name
Returns:
the registry

register

public java.lang.String register(int code,
                                 java.lang.String name)
Registers a new tag.

Parameters:
code - the tag code
name - the tag name
Returns:
the tag name

getTagName

public java.lang.String getTagName(int code)
Retrieves a tag name from its code.

Parameters:
code - the code
Returns:
the name

getKey

public java.lang.Object getKey(int key)