private static boolean isISO639LanguageCode ( final String str ) { return StringUtils . isAllLowerCase ( str ) && ( str . length ( ) == 2 || str . length ( ) == 3 ) ; }
Checks whether the given String is a ISO 639 compliant language code .