|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.anidb.udp.UdpAnimeFactory
public class UdpAnimeFactory
A factory for Anime
objects.
Method Summary | |
---|---|
Anime |
getAnime(long animeId)
Returns the anime with the given Id. |
Anime |
getAnime(long animeId,
AnimeMask mask)
Returns the anime with the given Id. |
Anime |
getAnime(java.lang.String animeName)
Returns the anime with the given name. |
Anime |
getAnime(java.lang.String animeName,
AnimeMask mask)
Returns the anime with the given name. |
static UdpAnimeFactory |
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 UdpAnimeFactory getInstance(UdpConnection conn)
conn
- The connection.
java.lang.IllegalArgumentException
- If the connection is null
.public Anime getAnime(long animeId) throws UdpConnectionException, AniDbException
animeId
- The anime Id.
UdpConnectionException
- If a connection problem occured.
AniDbException
- If a problem with AniDB occured.UdpReturnCodes.NO_SUCH_ANIME
public Anime getAnime(java.lang.String animeName) throws UdpConnectionException, AniDbException
animeName
- The anime name.
java.lang.IllegalArgumentException
- If the anime name is null
.
UdpConnectionException
- If a connection problem occured.
AniDbException
- If a problem with AniDB occured.UdpReturnCodes.NO_SUCH_ANIME
public Anime getAnime(long animeId, AnimeMask mask) throws UdpConnectionException, AniDbException
Returns the anime with the given Id.
Only the fields specified by the mask will be filled.
animeId
- The anime Id.mask
- The mask.
UdpConnectionException
- If a connection problem occured.
AniDbException
- If a problem with AniDB occured.UdpReturnCodes.NO_SUCH_ANIME
public Anime getAnime(java.lang.String animeName, AnimeMask mask) throws UdpConnectionException, AniDbException
Returns the anime with the given name.
Only the fields specified by the mask will be filled.
animeName
- The anime name.mask
- The mask.
java.lang.IllegalArgumentException
- If the anime name is null
.
UdpConnectionException
- If a connection problem occured.
AniDbException
- If a problem with AniDB occured.UdpReturnCodes.NO_SUCH_ANIME
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |