Package entagged.audioformats.generic

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


   *
   * @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

TOP

Related Classes of entagged.audioformats.generic.TagTextField

Copyright © 2018 www.massapicom. 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.