|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.anidb.udp.UdpEpisodeFactory
public class UdpEpisodeFactory
A factory for Episode objects.
| Method Summary | |
|---|---|
Episode |
getEpisode(long episodeId)
Returns the episode with the given Id. |
Episode |
getEpisode(long animeId,
long episodeNumber)
Returns the episode with the given anime Id and episode number. |
Episode |
getEpisode(java.lang.String animeName,
long episodeNumber)
Returns the episode with the given anime name and episode number. |
static UdpEpisodeFactory |
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 UdpEpisodeFactory getInstance(UdpConnection conn)
conn - The connection.
java.lang.IllegalArgumentException - If the connection is null.
public Episode getEpisode(long episodeId)
throws UdpConnectionException,
AniDbException
episodeId - The episode Id.
UdpConnectionException - If a connection problem occured.
AniDbException - If a problem with AniDB occured.UdpReturnCodes.NO_SUCH_EPISODE
public Episode getEpisode(java.lang.String animeName,
long episodeNumber)
throws UdpConnectionException,
AniDbException
animeName - The anime name.episodeNumber - The episode number.
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_EPISODE
public Episode getEpisode(long animeId,
long episodeNumber)
throws UdpConnectionException,
AniDbException
animeId - The anime Id.episodeNumber - The episode number.
UdpConnectionException - If a connection problem occured.
AniDbException - If a problem with AniDB occured.UdpReturnCodes.NO_SUCH_EPISODE
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||