protected String calculateHttpEncoding(
     String httpContentType,
     String bomEnc,
     String xmlGuessEnc,
     String xmlEnc,
     boolean lenient,
     String defaultEncoding)
     throws IOException {
   MockXmlStreamReader mock = new MockXmlStreamReader(defaultEncoding);
   return mock.calculateHttpEncoding(httpContentType, bomEnc, xmlGuessEnc, xmlEnc, lenient);
 }
 protected String calculateRawEncoding(
     String bomEnc, String xmlGuessEnc, String xmlEnc, String defaultEncoding) throws IOException {
   MockXmlStreamReader mock = new MockXmlStreamReader(defaultEncoding);
   return mock.calculateRawEncoding(bomEnc, xmlGuessEnc, xmlEnc);
 }