org.metasyntactic.id3.v2
Class Restriction

java.lang.Object
  |
  +--org.metasyntactic.id3.v2.Restriction

public class Restriction
extends java.lang.Object


Field Summary
static int EXACTLY_64_BY_64
           
static int MAX_128_FRAMES_1_MB
           
static int MAX_256_BY_256
           
static int MAX_32_FRAMES_4_KB
           
static int MAX_32_FRAMES_40_KB
           
static int MAX_64_BY_64
           
static int MAX_64_FRAMES_128_KB
           
static int NO_RESTRICTIONS
           
static int NOT_LONGER_THAN_1024
           
static int NOT_LONGER_THAN_128
           
static int NOT_LONGER_THAN_30
           
static int ONLY_ISO_8859_OR_UTF_8
           
static int ONLY_PNG_OR_JPEG
           
 
Constructor Summary
Restriction(int tagSize, int textEncoding, int textFieldSize, int imageEncoding, int imageSize)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean equals(Restriction r)
           
 int hashCode()
           
 void read(java.io.PushbackInputStream in)
           
 java.lang.String toString()
           
 void write(java.io.OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_RESTRICTIONS

public static final int NO_RESTRICTIONS
See Also:
Constant Field Values

MAX_128_FRAMES_1_MB

public static final int MAX_128_FRAMES_1_MB
See Also:
Constant Field Values

MAX_64_FRAMES_128_KB

public static final int MAX_64_FRAMES_128_KB
See Also:
Constant Field Values

MAX_32_FRAMES_40_KB

public static final int MAX_32_FRAMES_40_KB
See Also:
Constant Field Values

MAX_32_FRAMES_4_KB

public static final int MAX_32_FRAMES_4_KB
See Also:
Constant Field Values

ONLY_ISO_8859_OR_UTF_8

public static final int ONLY_ISO_8859_OR_UTF_8
See Also:
Constant Field Values

NOT_LONGER_THAN_1024

public static final int NOT_LONGER_THAN_1024
See Also:
Constant Field Values

NOT_LONGER_THAN_128

public static final int NOT_LONGER_THAN_128
See Also:
Constant Field Values

NOT_LONGER_THAN_30

public static final int NOT_LONGER_THAN_30
See Also:
Constant Field Values

ONLY_PNG_OR_JPEG

public static final int ONLY_PNG_OR_JPEG
See Also:
Constant Field Values

MAX_256_BY_256

public static final int MAX_256_BY_256
See Also:
Constant Field Values

MAX_64_BY_64

public static final int MAX_64_BY_64
See Also:
Constant Field Values

EXACTLY_64_BY_64

public static final int EXACTLY_64_BY_64
See Also:
Constant Field Values
Constructor Detail

Restriction

public Restriction(int tagSize,
                   int textEncoding,
                   int textFieldSize,
                   int imageEncoding,
                   int imageSize)
Method Detail

write

public void write(java.io.OutputStream out)
           throws java.io.IOException
java.io.IOException

read

public void read(java.io.PushbackInputStream in)
          throws java.io.IOException,
                 Id3v2Exception
java.io.IOException
Id3v2Exception

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(Restriction r)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object