this.name = encoding;
this.q = q;
}
public static ContentEncoding fromString(String input) throws ParseException {
HttpHeaderReader reader = HttpHeaderReader.newInstance(input);
// Skip any white space
reader.hasNext();
return new ContentEncoding(reader.nextToken(), HttpHeaderReader.readQualityFactorParameter(reader));
}