entagged.audioformats.mp3.util
Class Id3v2TagCreator

java.lang.Object
  extended by entagged.audioformats.generic.AbstractTagCreator
      extended by entagged.audioformats.mp3.util.Id3v2TagCreator

public class Id3v2TagCreator
extends AbstractTagCreator


Field Summary
static int DEFAULT_PADDING
          Default Padding size, when the tag is created from scratch (the old cannot be replaced)
 
Constructor Summary
Id3v2TagCreator()
           
 
Method Summary
 void create(Tag tag, ByteBuffer buf, List fields, int tagSize, int paddingSize)
           
protected  Tag getCompatibleTag(Tag tag)
           
protected  int getFixedTagLength(Tag tag)
           
static byte[] getSyncSafe(int value)
          This method will return a so called syncsafe integer with the value of the given tempSize.
 
Methods inherited from class entagged.audioformats.generic.AbstractTagCreator
computeTagLength, convert, convert, createFields, getTagLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PADDING

public static final int DEFAULT_PADDING
Default Padding size, when the tag is created from scratch (the old cannot be replaced)

See Also:
Constant Field Values
Constructor Detail

Id3v2TagCreator

public Id3v2TagCreator()
Method Detail

getSyncSafe

public static byte[] getSyncSafe(int value)
This method will return a so called syncsafe integer with the value of the given tempSize.

Parameters:
value - The value to be converted.
Returns:
A SyncSafe integer as 32-bit byte array.

create

public void create(Tag tag,
                   ByteBuffer buf,
                   List fields,
                   int tagSize,
                   int paddingSize)
Specified by:
create in class AbstractTagCreator

getCompatibleTag

protected Tag getCompatibleTag(Tag tag)
Specified by:
getCompatibleTag in class AbstractTagCreator

getFixedTagLength

protected int getFixedTagLength(Tag tag)
Specified by:
getFixedTagLength in class AbstractTagCreator


Copyright © 2007-2008. All Rights Reserved.