Revert for Java 5 compatibility
This commit is contained in:
parent
79f32ecba9
commit
fb5eb0afd9
@ -268,10 +268,10 @@ public abstract class AbstractDiskHttpData extends AbstractHttpData {
|
||||
}
|
||||
if (encoding == null) {
|
||||
byte[] array = readFrom(file);
|
||||
return new String(array, HttpCodecUtil.DEFAULT_CHARSET);
|
||||
return new String(array, HttpCodecUtil.DEFAULT_CHARSET.name());
|
||||
}
|
||||
byte[] array = readFrom(file);
|
||||
return new String(array, encoding);
|
||||
return new String(array, encoding.name());
|
||||
}
|
||||
|
||||
public boolean isInMemory() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user