Lines Matching defs:charset
54 * given charset. This method constructs the "encoded-word" header common to all the
59 * @param charset a charset to be used
65 * @throws UnsupportedEncodingException thrown if charset is not supported
70 protected String encodeText(final String text, final String charset)
78 buffer.append(charset);
82 byte [] rawdata = doEncoding(text.getBytes(charset));
97 * @throws UnsupportedEncodingException thrown if charset specified in the "encoded-word"
113 throw new DecoderException("RFC 1522 violation: charset token not found");
115 String charset = text.substring(from, to);
116 if (charset.equals("")) {
117 throw new DecoderException("RFC 1522 violation: charset not specified");
133 return new String(data, charset);