Class w3c.mime.Language
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.mime.Language

java.lang.Object
   |
   +----w3c.mime.Language

public class Language
extends Object
This class is used to compare content languages. Request accept-language header are parsed into an array of these objects, which can be matched against some language string.

FIXME I should really, like for MIME types have a Language class, inherited by some other AcceptLanguage, BTW MIMEType and Accept MIMEType.


Method Index

 o getQuality()
Get this language quality, should be a method of AcceptLanguage.
 o match(String)
Does the given language matches this one.

Methods

 o match
  public int match(String another)
Does the given language matches this one.
Parameters:
another - The language to match.
Returns:
A value indicating how well these languages match, a negative value indicate that they don't match at all.
 o getQuality
  public double getQuality()
Get this language quality, should be a method of AcceptLanguage.
Returns:
A quality (double) indicating how well this language is accepted.

All Packages  Class Hierarchy  This Package  Previous  Next  Index