public Locale read(String locale) throws Exception {
  String[] list=pattern.split(locale);
  if (list.length < 1) {
    throw new InvalidFormatException("Invalid locale %s",locale);
  }
  return read(list);
}

public Locale read ( String locale ) throws Exception { String [ ] list = pattern . split ( locale ) ; if ( list . length < 1 ) { throw new InvalidFormatException ( "Invalid locale %s" , locale ) ; } return read ( list ) ; }
this method is used to convert the string value given to an appropriate representation . this is used when an object is being deserialized from the xml document and the value for the string representation is required .
