Package org.apache.fulcrum.localization
Class LocaleTokenizer
java.lang.Object
org.apache.fulcrum.localization.LocaleTokenizer
Parses the HTTP 
Accept-Language header as per section
 14.4 of RFC 2068 (HTTP 1.1 header field definitions).- Version:
- $Id$
- Author:
- Daniel Rall
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classStruct representing an element of the HTTPAccept-Languageheader.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final FloatThe default quality value for anAcceptLanguageobject.
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.IteratorforEachRemaining
- 
Field Details- 
DEFAULT_QUALITYThe default quality value for anAcceptLanguageobject.
 
- 
- 
Constructor Details- 
LocaleTokenizerParses theAccept-Languageheader.- Parameters:
- header- The- Accept-Languageheader (i.e.- en, es;q=0.8, zh-TW;q=0.1).
 
 
- 
- 
Method Details- 
hasNextpublic boolean hasNext()
- 
nextCreates aLocalefrom the next element of theAccept-Languageheader.- Specified by:
- nextin interface- Iterator<Object>
- Returns:
- The next highest-rated Locale.
- Throws:
- NoSuchElementException- No more locales.
 
- 
removepublic final void remove()Not implemented.
 
-