Calculates the most efficient content encoding for the this given the constraint.
constraint
a Part object
a EncodingConstraint
the best content encoding for the specified mime part.