Examples of FrameBodyPOPM

@author : Paul Taylor @author : Eric Farng @version $Id: FrameBodyPOPM.java 938 2010-12-10 13:17:22Z paultaylor $ @todo : Counter should be optional, whereas we always expect it although allow a size of zeroneeds testing.

Examples of org.jaudiotagger.tag.id3.framebody.FrameBodyPOPM

      else if (frame.getBody() instanceof FrameBodyCOMM) {
        FrameBodyCOMM body = (FrameBodyCOMM) frame.getBody();
        track.getTrackData().addComment(body.getText());
      }
      else if (frame.getBody() instanceof FrameBodyPOPM) {
        FrameBodyPOPM body = (FrameBodyPOPM) frame.getBody();
        track.getTrackData().addRating(String.valueOf(body.getRating()));
      }
      else if (frame.getBody() instanceof AbstractFrameBodyTextInfo) {
        AbstractFrameBodyTextInfo body = (AbstractFrameBodyTextInfo) frame.getBody();
        for (int i = 0; i < body.getNumberOfValues(); i++) {
          track.getTrackData().addTagFieldValues(key, body.getValueAtIndex(i));
        }
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.