in src/main/java/org/apache/sling/engine/impl/parameters/MultipartRequestParameter.java [95:121]
public String getString() {
// only apply encoding in the case of a form field
if (this.isFormField()) {
if (this.cachedValue == null) {
// try explicit encoding if available
byte[] data = get();
String encoding = getEncoding();
if (encoding != null) {
try {
this.cachedValue = new String(data, encoding);
} catch (UnsupportedEncodingException uee) {
// don't care, fall back to platform default
}
}
// if there is no encoding, or an illegal encoding,
// use platform default
if (cachedValue == null) {
cachedValue = new String(data);
}
}
return this.cachedValue;
}
return this.delegatee.getString();
}