net.anidb.udp.mask
Class FileMask

java.lang.Object
  extended by net.anidb.udp.mask.Mask
      extended by net.anidb.udp.mask.FileMask

public class FileMask
extends Mask

The file mask for the FILE command.

With this mask you can specify which data fields are returned.

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

Field Summary
static FileMask ALL
          A mask with all fields set.
 
Constructor Summary
FileMask(boolean animeId, boolean episodeId, boolean groupId, boolean mylistId, boolean listOtherEpisodes, boolean deprecated, boolean state, boolean size, boolean ed2k, boolean md5, boolean sha1, boolean crc32, boolean quality, boolean source, boolean audioCodecList, boolean audioBitrateList, boolean videoCodec, boolean videoBitrate, boolean videoResolution, boolean fileType, boolean dubLanguage, boolean subLanguage, boolean lengthInSeconds, boolean description, boolean airedDate, boolean aniDbFileName)
          Creates a file mask.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getFlagCount()
          Returns the count how many flags are set.
 java.lang.String getHexMask()
          Returns the mask as a hex value.
 long getMask()
          Returns the mask as a value.
 int hashCode()
           
 boolean isAiredDate()
          Returns the aired date.
 boolean isAniDbFileName()
          Returns the AniDB file name.
 boolean isAnimeId()
          Returns the anime Id.
 boolean isAudioBitrateList()
          Returns the audio bitrate list.
 boolean isAudioCodecList()
          Returns the audio codec list.
 boolean isCrc32()
          Returns the crc32 hash.
 boolean isDeprecated()
          Returns the 'is deprecated' flag.
 boolean isDescription()
          Returns the description.
 boolean isDubLanguage()
          Return the dub language.
 boolean isEd2k()
          Returns the ed2k hash.
 boolean isEpisodeId()
          Returns the episode Id.
 boolean isFileType()
          Returns the file type.
 boolean isGroupId()
          Returns the group Id.
 boolean isLengthInSeconds()
          Returns the length in seconds.
 boolean isListOtherEpisodes()
          Returns the list of other episodes.
 boolean isMd5()
          Returns the md5 hash.
 boolean isMyListId()
          Returns the MyList Id.
 boolean isQuality()
          Returns the quality.
 boolean isSha1()
          Returns the sha1 hash.
 boolean isSize()
          Returns the size.
 boolean isSource()
          Returns the source.
 boolean isState()
          Returns the state.
 boolean isSubLanguage()
          Returns the sub language.
 boolean isVideoBitrate()
          Returns the video bitrate.
 boolean isVideoCodec()
          Returns the video codec.
 boolean isVideoResolution()
          Returns the video resolution.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL

public static final FileMask ALL
A mask with all fields set.

Constructor Detail

FileMask

public FileMask(boolean animeId,
                boolean episodeId,
                boolean groupId,
                boolean mylistId,
                boolean listOtherEpisodes,
                boolean deprecated,
                boolean state,
                boolean size,
                boolean ed2k,
                boolean md5,
                boolean sha1,
                boolean crc32,
                boolean quality,
                boolean source,
                boolean audioCodecList,
                boolean audioBitrateList,
                boolean videoCodec,
                boolean videoBitrate,
                boolean videoResolution,
                boolean fileType,
                boolean dubLanguage,
                boolean subLanguage,
                boolean lengthInSeconds,
                boolean description,
                boolean airedDate,
                boolean aniDbFileName)
Creates a file mask.

Parameters:
animeId - The anime Id.
episodeId - The episode Id.
groupId - The group Id.
mylistId - The MyList Id.
listOtherEpisodes - The list of other episodes.
deprecated - The 'is deprecated' flag.
state - The state.
size - The size.
ed2k - The ed2k hash.
md5 - The md5 hash.
sha1 - The sha1 hash.
crc32 - The crc32 hash.
quality - The quality.
source - The source.
audioCodecList - The audio codec list.
audioBitrateList - The audio bitrate list.
videoCodec - The video codec.
videoBitrate - The video bitrate.
videoResolution - The video resolution.
fileType - The file type.
dubLanguage - The dub language.
subLanguage - The sub language.
lengthInSeconds - The length in seconds.
description - The description.
airedDate - The aired date.
aniDbFileName - The AniDB file name.
Method Detail

isAnimeId

public boolean isAnimeId()
Returns the anime Id.

Returns:
The anime Id.

isEpisodeId

public boolean isEpisodeId()
Returns the episode Id.

Returns:
The episode Id.

isGroupId

public boolean isGroupId()
Returns the group Id.

Returns:
The group Id.

isMyListId

public boolean isMyListId()
Returns the MyList Id.

Returns:
The MyList Id.

isListOtherEpisodes

public boolean isListOtherEpisodes()
Returns the list of other episodes.

Returns:
The list of other episodes.

isDeprecated

public boolean isDeprecated()
Returns the 'is deprecated' flag.

Returns:
The 'is deprecated' flag.

isState

public boolean isState()
Returns the state.

Returns:
The state.

isSize

public boolean isSize()
Returns the size.

Returns:
The size.

isEd2k

public boolean isEd2k()
Returns the ed2k hash.

Returns:
The ed2k hash.

isMd5

public boolean isMd5()
Returns the md5 hash.

Returns:
The md5 hash.

isSha1

public boolean isSha1()
Returns the sha1 hash.

Returns:
The sha1 hash.

isCrc32

public boolean isCrc32()
Returns the crc32 hash.

Returns:
The crc32 hash.

isQuality

public boolean isQuality()
Returns the quality.

Returns:
The quality.

isSource

public boolean isSource()
Returns the source.

Returns:
The source.

isAudioCodecList

public boolean isAudioCodecList()
Returns the audio codec list.

Returns:
The audio codec list.

isAudioBitrateList

public boolean isAudioBitrateList()
Returns the audio bitrate list.

Returns:
The audio bitrate list.

isVideoCodec

public boolean isVideoCodec()
Returns the video codec.

Returns:
The video code.

isVideoBitrate

public boolean isVideoBitrate()
Returns the video bitrate.

Returns:
The video bitrate.

isVideoResolution

public boolean isVideoResolution()
Returns the video resolution.

Returns:
The video resolution.

isFileType

public boolean isFileType()
Returns the file type.

Returns:
The file type.

isDubLanguage

public boolean isDubLanguage()
Return the dub language.

Returns:
The dub language.

isSubLanguage

public boolean isSubLanguage()
Returns the sub language.

Returns:
The sub language.

isLengthInSeconds

public boolean isLengthInSeconds()
Returns the length in seconds.

Returns:
The length in seconds.

isDescription

public boolean isDescription()
Returns the description.

Returns:
The description.

isAiredDate

public boolean isAiredDate()
Returns the aired date.

Returns:
The aired date.

isAniDbFileName

public boolean isAniDbFileName()
Returns the AniDB file name.

Returns:
The AniDB file name.

getMask

public long getMask()
Description copied from class: Mask
Returns the mask as a value.

Specified by:
getMask in class Mask
Returns:
The value.

getHexMask

public java.lang.String getHexMask()
Description copied from class: Mask

Returns the mask as a hex value.

The hex value will allways have the constant and full length.

Specified by:
getHexMask in class Mask
Returns:
The hex value.

getFlagCount

public int getFlagCount()
Description copied from class: Mask
Returns the count how many flags are set.

Specified by:
getFlagCount in class Mask
Returns:
The count.

hashCode

public int hashCode()
Specified by:
hashCode in class Mask

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in class Mask