Format function for class of mime-type.