Examples of TagTextField


Examples of entagged.audioformats.generic.TagTextField

  public static ContentDescription createContentDescription(Tag tag) {
    ContentDescription result = new ContentDescription();
    result.setAuthor(tag.getFirstArtist());
    result.setTitle(tag.getFirstTitle());
    result.setComment(tag.getFirstComment());
    TagTextField cpField = AsfCopyrightField.getCopyright(tag);
    if (cpField != null) {
      result.setCopyRight(cpField.getContent());
    }
    return result;
  }
View Full Code Here

Examples of entagged.audioformats.generic.TagTextField

   *
   * @return <code>null</code> if the tag represents a file which is not a
   *         asf file, or no copyright has been entered.
   */
  public static TagTextField getCopyright(Tag tag) {
    TagTextField result = null;
    List list = tag.get(FIELD_ID);
    if (list != null && list.size() > 0) {
      TagField field = (TagField) list.get(0);
      if (field instanceof TagTextField) {
        result = (TagTextField) field;
View Full Code Here

Examples of org.jaudiotagger.tag.TagTextField

     * @param tagField The tag to get tag data for
     * @return The tag data or null if no tag data could be retrieved
     */
    protected TagData getTagData(TagField tagField) {
        if (tagField instanceof TagTextField) {
            TagTextField vtf = (TagTextField) tagField;
            return new TagData(vtf.getId(), vtf.getContent(), vtf.getContent().toUpperCase());
        }
        return null;
    }
View Full Code Here

Examples of org.jaudiotagger.tag.TagTextField

    }

    @Override
    protected TagData getTagData(TagField tagField) {
        if (tagField instanceof TagTextField) {
            TagTextField vtf = (TagTextField) tagField;
            if (tagField instanceof AbstractID3v2Frame && ((AbstractID3v2Frame) tagField).getBody() instanceof FrameBodyTXXX) {
                FrameBodyTXXX t = (FrameBodyTXXX) ((AbstractID3v2Frame) tagField).getBody();
                return new TagData(t.getDescription(), vtf.getContent(), vtf.getContent().toUpperCase());
            } else if (tagField instanceof AbstractID3v2Frame) {
                return new TagData(vtf.getId(), vtf.getContent(), vtf.getContent().toUpperCase());
            }
        }
        return null;
    }
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.