AppendableWriter增加checkNotClosed(issue#IDMZ5K@Gitee)

This commit is contained in:
Looly
2026-02-01 19:36:08 +08:00
parent 74306cc6d3
commit 4938242c9a

View File

@@ -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));
}