mirror of
https://gitee.com/dromara/hutool.git
synced 2026-02-09 09:16:26 +08:00
AppendableWriter增加checkNotClosed(issue#IDMZ5K@Gitee)
This commit is contained in:
@@ -87,11 +87,13 @@ public class AppendableWriter extends Writer implements Appendable {
|
||||
|
||||
@Override
|
||||
public void write(final String str) throws IOException {
|
||||
checkNotClosed();
|
||||
appendable.append(str);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(final char[] cbuf) throws IOException {
|
||||
checkNotClosed();
|
||||
appendable.append(CharBuffer.wrap(cbuf));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user