RawField rawField = RawFieldParser.DEFAULT.parseField(raw);
return ContentTransferEncodingFieldImpl.PARSER.parse(rawField, null);
}
public void testGetEncoding() throws Exception {
ContentTransferEncodingField f = parse("Content-Transfer-Encoding: 8bit");
assertEquals("8bit", f.getEncoding());
f = parse("Content-Transfer-Encoding: BaSE64 ");
assertEquals("base64", f.getEncoding());
f = parse("Content-Transfer-Encoding: ");
assertEquals("", f.getEncoding());
f = parse("Content-Transfer-Encoding:");
assertEquals("", f.getEncoding());
}