public static MediaType nonBinaryUtf8 ( MediaType . Type type , String subType ) { return new MediaType ( type , subType , UTF_8 ) ; }
Creates a non - binary media type with the given type subtype and UTF - 8 encoding