|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.anidb.udp.UdpCharacterFactory
public class UdpCharacterFactory
A factory for Character
objects.
Method Summary | |
---|---|
Character |
getCharacter(long characterId)
Returns the character with the given character Id. |
static UdpCharacterFactory |
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 |
---|
public static UdpCharacterFactory getInstance(UdpConnection conn)
conn
- The connection.
java.lang.IllegalArgumentException
- If the connection is null
.public Character getCharacter(long characterId) throws UdpConnectionException, AniDbException
characterId
- The character Id.
UdpConnectionException
- If a connection problem occured.
AniDbException
- If a problem with AniDB occured.UdpReturnCodes.NO_SUCH_CHARACTER
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |