提交 4dadf3c5 编写于 作者: S Serge Rider

Utils fix


Former-commit-id: 3e702440
上级 1e072920
......@@ -127,11 +127,13 @@ public final class IOUtils {
outputStream.flush();
}
public static String toString(File file) throws IOException {
try (Reader reader = new FileReader(file)) {
StringWriter writer = new StringWriter();
copyText(reader, writer, DEFAULT_BUFFER_SIZE);
return writer.toString();
public static String toString(File file, String encoding) throws IOException {
try (InputStream is = new FileInputStream(file)) {
try (Reader reader = new InputStreamReader(is, encoding)) {
StringWriter writer = new StringWriter();
copyText(reader, writer, DEFAULT_BUFFER_SIZE);
return writer.toString();
}
}
}
......
......@@ -57,6 +57,7 @@ public class BaseDialog extends Dialog
this.icon = image;
}
@Override
protected boolean isResizable() {
return true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册