public class I18NTokenizer extends Object implements Iterator
Accept-Language
header as per section
14.4 of RFC 2068 (HTTP 1.1 header field definitions).Constructor and Description |
---|
I18NTokenizer(String header)
Parses the
Accept-Language header. |
public I18NTokenizer(String header)
Accept-Language
header.header
- The Accept-Language
header
(i.e. en, es;q=0.8, zh-TW;q=0.1
).public boolean hasNext()
public Object next()
Locale
from the next element of the
Accept-Language
header.next
in interface Iterator
Locale
.NoSuchElementException
- No more locales.Copyright © 2001–2015 Codehaus Plexus. All rights reserved.