entagged.audioformats.generic
Class AbstractTagCreator

java.lang.Object
  extended by entagged.audioformats.generic.AbstractTagCreator
Direct Known Subclasses:
ApeTagCreator, Id3v2TagCreator, Mp4TagCreator, OggTagCreator

public abstract class AbstractTagCreator
extends Object


Constructor Summary
AbstractTagCreator()
           
 
Method Summary
protected  int computeTagLength(Tag tag, List l)
           
 ByteBuffer convert(Tag tag)
           
 ByteBuffer convert(Tag tag, int padding)
           
protected abstract  void create(Tag tag, ByteBuffer buf, List fields, int tagSize, int padding)
           
protected  List createFields(Tag tag)
           
protected abstract  Tag getCompatibleTag(Tag tag)
           
protected abstract  int getFixedTagLength(Tag tag)
           
 int getTagLength(Tag tag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTagCreator

public AbstractTagCreator()
Method Detail

convert

public ByteBuffer convert(Tag tag)
                   throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

convert

public ByteBuffer convert(Tag tag,
                          int padding)
                   throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

createFields

protected List createFields(Tag tag)
                     throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

computeTagLength

protected int computeTagLength(Tag tag,
                               List l)
                        throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

getTagLength

public int getTagLength(Tag tag)
                 throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

getFixedTagLength

protected abstract int getFixedTagLength(Tag tag)
                                  throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

getCompatibleTag

protected abstract Tag getCompatibleTag(Tag tag)

create

protected abstract void create(Tag tag,
                               ByteBuffer buf,
                               List fields,
                               int tagSize,
                               int padding)
                        throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException


Copyright © 2007-2008. All Rights Reserved.