org.blinkenlights.jid3
Class ID3Tag

java.lang.Object
  extended byorg.blinkenlights.jid3.ID3Tag
All Implemented Interfaces:
ID3Visitable
Direct Known Subclasses:
ID3V1Tag, ID3V2Tag

public abstract class ID3Tag
extends java.lang.Object
implements ID3Visitable


Constructor Summary
ID3Tag()
          Constructor.
 
Method Summary
abstract  java.lang.String toString()
          Represent a tag as string for debugging purposes.
static void useStrict(boolean bUseStrict)
          Set whether strict mode should be used or not (default non-strict).
static boolean usingStrict()
          Check whether strict mode is currently set or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.blinkenlights.jid3.util.ID3Visitable
accept
 

Constructor Detail

ID3Tag

public ID3Tag()
Constructor.

Method Detail

toString

public abstract java.lang.String toString()
Represent a tag as string for debugging purposes.

Returns:
a string representation of the contents of the tag

useStrict

public static void useStrict(boolean bUseStrict)
Set whether strict mode should be used or not (default non-strict). When reading tags from a file, in strict mode any invalid frames will genarate an exception. In non-strict mode, any invalid frames will simply be ignored.

Parameters:
bUseStrict - whether strict mode should be used or not

usingStrict

public static boolean usingStrict()
Check whether strict mode is currently set or not.

Returns:
true if strict mode is enabled, false otherwise