megamek.common.util
Class LocaleParser
java.lang.Object
megamek.common.util.LocaleParser
public class LocaleParser
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
st
protected java.io.StreamTokenizer st
language
protected java.lang.String language
country
protected java.lang.String country
variant
protected java.lang.String variant
currentToken
protected int currentToken
exception
protected LocaleParser.ParseException exception
LocaleParser
public LocaleParser()
getLanguage
public java.lang.String getLanguage()
getCountry
public java.lang.String getCountry()
getVariant
public java.lang.String getVariant()
parse
public boolean parse(java.lang.String locstring)
parse
public boolean parse(java.io.StreamTokenizer st)
getException
public LocaleParser.ParseException getException()
clear
protected void clear()
parse
protected boolean parse()
parseLocale
protected void parseLocale()
throws LocaleParser.ParseException
- Throws:
LocaleParser.ParseException
parseCountry
protected void parseCountry()
throws LocaleParser.ParseException
- Throws:
LocaleParser.ParseException
parseVariant
protected void parseVariant()
throws LocaleParser.ParseException
- Throws:
LocaleParser.ParseException
nextToken
protected void nextToken()