|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.i18n.I18NTokenizer
public class I18NTokenizer
Parses the HTTP Accept-Language
header as per section
14.4 of RFC 2068 (HTTP 1.1 header field definitions).
Constructor Summary | |
---|---|
I18NTokenizer(String header)
Parses the Accept-Language header. |
Method Summary | |
---|---|
boolean |
hasNext()
|
Object |
next()
Creates a Locale from the next element of the
Accept-Language header. |
void |
remove()
Not implemented. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public I18NTokenizer(String header)
Accept-Language
header.
header
- The Accept-Language
header
(i.e. en, es;q=0.8, zh-TW;q=0.1
).Method Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator
public Object next()
Locale
from the next element of the
Accept-Language
header.
next
in interface Iterator
Locale
.
NoSuchElementException
- No more locales.public final void remove()
remove
in interface Iterator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |