707708709710711712713714715
shared.encoding = null; shared.userVars.remove("*ENCODING"); return; } if (!Charset.isSupported(newEncoding)) throw new UnsupportedEncodingException(newEncoding); shared.userVars.put("*ENCODING", newEncoding); shared.encoding = newEncoding; }
352353354355356357358359360361
if (normalizedEncoding == null) { String m = new org.apache.cxf.common.i18n.Message("INVALID_ENCODING_MSG", LOG, new Object[] { enc }).toString(); LOG.log(Level.WARNING, m); throw new UnsupportedEncodingException(m); } return normalizedEncoding; }
412413414415416417418
List<LinkInfo> info = new ArrayList<LinkInfo>(); parseLinkProperties(is, info, props); return info; } else throw new UnsupportedEncodingException("Unknown link format: " + name); }
488489490491492493494495
final FormDataParser parser = exchange.getAttachment(FormDataParser.ATTACHMENT_KEY); if (parser != null) { parser.setCharacterEncoding(env); } } catch (UnsupportedCharsetException e) { throw new UnsupportedEncodingException(); } }
702703704705706707708709710711712
String c = Headers.extractTokenFromHeader(contentType, "charset"); if (c != null) { try { charSet = Charset.forName(c); } catch (UnsupportedCharsetException e) { throw new UnsupportedEncodingException(); } } } }
223224225226227228229230231232233234235236237
{ charset = Charset.forName(enc); } catch (IllegalCharsetNameException e) { throw new WicketRuntimeException(new UnsupportedEncodingException(enc)); } catch (UnsupportedCharsetException e) { throw new WicketRuntimeException(new UnsupportedEncodingException(enc)); } for (int i = 0; i < s.length();) { int c = s.charAt(i);
9596979899100101102103104105
StringBuffer sb = new StringBuffer(numChars > 500 ? numChars / 2 : numChars); int i = 0; if (enc.length() == 0) { throw new WicketRuntimeException(new UnsupportedEncodingException("URLDecoder: empty string enc parameter")); } char c; byte[] bytes = null; while (i < numChars)
113114115116117118119
throws UnsupportedEncodingException { if (_ianaToJavaEncoding.containsKey(encoding)) return _ianaToJavaEncoding.get(encoding); throw new UnsupportedEncodingException(encoding); }
194195196197198199200201
private void setResult() throws UnsupportedEncodingException { try { this.bytes=xmlBuffer.toString().getBytes(encoding); this.inputStream = new ByteArrayInputStream(this.bytes); } catch (UnsupportedEncodingException e) { throw new UnsupportedEncodingException(); } }
676869707172737475
Charset charset = encodingToCharsetCache.get(lowerCaseEnc); if (charset == null) { // Pre-population of the cache means this must be invalid throw new UnsupportedEncodingException(enc); } return charset; }