Logo Search packages:      
Sourcecode: jampal version File versions  Download package

ID3v2Frame pgbennett::id3::ID3v2Frames::put ( String  key,
ID3v2Frame  value 
) [inline]

Overrides the put method of HashMap. Caters for getting an extended id from the object and also for duplicate tags

Returns:
previous value if a value was replaced

Definition at line 550 of file ID3v2Frames.java.

References pgbennett::id3::ID3v2Frame::getExtendedId().

Referenced by pgbennett::id3::ID3v2Tag::parseFrames(), and pgbennett::id3::ID3v2Tag::updateFrameData().

                                    {
    ID3v2Frame prevValue = null;
    String extKey = value.getExtendedId();
//    if (extKey.length()>4)
      prevValue = (ID3v2Frame)super.put(extKey,value);
//    else {
//      prevValue = (ID3v2Frame)super.put(key,value);
//      if (prevValue!=null) {
//        super.put(key,prevValue);
//        int i;
//        for (i=1;;i++) {
//          String newKey = key + "_"+i;
//          prevValue = (ID3v2Frame)super.put(newKey,value);
//          if (prevValue==null)
//            break;
//          else
//            super.put((Object)newKey,(Object)prevValue);
//        }
//      }
//    }
    return prevValue;
  }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index