提交 88c6f379 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 9f1327c5
...@@ -303,7 +303,7 @@ public class TraceSystem implements TraceWriter { ...@@ -303,7 +303,7 @@ public class TraceSystem implements TraceWriter {
// can't be opened // can't be opened
return false; return false;
} }
fileWriter = IOUtils.getUnbufferedWriter(FileUtils.openFileOutputStream(fileName, true)); fileWriter = IOUtils.getWriter(FileUtils.openFileOutputStream(fileName, true));
printWriter = new PrintWriter(fileWriter, true); printWriter = new PrintWriter(fileWriter, true);
} catch (Exception e) { } catch (Exception e) {
logWritingError(e); logWritingError(e);
......
...@@ -369,21 +369,6 @@ public class IOUtils { ...@@ -369,21 +369,6 @@ public class IOUtils {
} }
} }
/**
* Create an unbuffered writer to write to an output stream using the UTF-8
* format. If the output stream is null, this method returns null.
*
* @param out the output stream or null
* @return the writer
*/
public static Writer getUnbufferedWriter(OutputStream out) throws SQLException {
try {
return out == null ? null : new OutputStreamWriter(out, Constants.UTF8);
} catch (UnsupportedEncodingException e) {
throw Message.convert(e);
}
}
/** /**
* Create an input stream to read from a string. The string is converted to * Create an input stream to read from a string. The string is converted to
* a byte array using UTF-8 encoding. * a byte array using UTF-8 encoding.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论