net.anidb.udp
Class UdpCreatorFactory

java.lang.Object
  extended by net.anidb.udp.UdpCreatorFactory

public class UdpCreatorFactory
extends java.lang.Object

A factory for Creator objects.

Version:
1.0, 28.12.2009
Author:
grizzlyxp (http://anidb.net/perl-bin/animedb.pl?show=userpage&uid=63935)

Method Summary
 Creator getCreator(long creatorId)
          Returns the creator with the given creator Id.
static UdpCreatorFactory getInstance(UdpConnection conn)
          Returns an instance of this class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static UdpCreatorFactory getInstance(UdpConnection conn)
Returns an instance of this class.

Parameters:
conn - The connection.
Returns:
The instance.
Throws:
java.lang.IllegalArgumentException - If the connection is null.

getCreator

public Creator getCreator(long creatorId)
                   throws UdpConnectionException,
                          AniDbException
Returns the creator with the given creator Id.

Parameters:
creatorId - The creator Id.
Returns:
The creator.
Throws:
UdpConnectionException - If a connection problem occured.
AniDbException - If a problem with AniDB occured.
See Also:
UdpReturnCodes.NO_SUCH_CREATOR