Exemplo n.º 1
0
 /**
  * Sets the default language for any ID3v2 tag frames which require it. While the value will
  * already exist when reading from a file, this value will be used when a new ID3v2 Frame is
  * created from scratch.
  *
  * @param lang language ID, [ISO-639-2] ISO/FDIS 639-2 definition
  */
 public void setLanguage(String lang) {
   if (Languages.getInstanceOf().getIdToValueMap().containsKey(lang)) {
     language = lang;
   }
 }
 /** @return true if text value is valid language code */
 public boolean isValid() {
   return Languages.getInstanceOf().getValueForId(getFirstTextValue()) != null;
 }