public class LanguageTag extends Object
Modifier | Constructor and Description |
---|---|
protected |
LanguageTag() |
|
LanguageTag(HttpHeaderReader reader) |
|
LanguageTag(String header) |
|
LanguageTag(String primaryTag,
String subTags) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Locale |
getAsLocale() |
String |
getPrimaryTag() |
String |
getSubTags() |
String |
getTag() |
int |
hashCode() |
boolean |
isCompatible(Locale tag) |
protected void |
parse(String languageTag) |
String |
toString() |
static LanguageTag |
valueOf(String s) |
protected LanguageTag()
public LanguageTag(String header) throws ParseException
ParseException
public LanguageTag(HttpHeaderReader reader) throws ParseException
ParseException
public static LanguageTag valueOf(String s) throws IllegalArgumentException
IllegalArgumentException
public final boolean isCompatible(Locale tag)
public final Locale getAsLocale()
protected final void parse(String languageTag) throws ParseException
ParseException
public final String getTag()
public final String getPrimaryTag()
public final String getSubTags()
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.