code: public void copyFrom(EncodingInfo encInfo) {
          fEncoding = encInfo.getEncoding();
          fIsBigEndian = encInfo.isBigEndian();
          fHasBOM = encInfo.hasBOM();
      }
docs: Copies property values from another <code>EncodingInfo</code> instance. Strange enough, but
  sometimes such behavior is preferred to simple assignment or cloning. More specifically, this
  method is currently used (at least it was :) in <code>
  XmlCharsetDetector.getCharsetAwareReader</code> (other two ways simply don't work).
  
  @param encInfo source object which properties should be mirrored in this instance