¿¹Á¦
protected void finalize() throws Throwable {
try {
OutputStream stream = getOutputStream();
stream.flush();
stream.close();
}
catch (IOException exc) {
LogUtility.log(exc);
}
finally {
super .finalize();
}
}

private OutputStream getOutputStream() {
return _stream;
}

private transient OutputStream _stream;
¼Ö·ç¼Ç
finalize() ¸Þ¼Òµå ´ë½Å ¸í½ÃÀûÀ¸·Î È£ÃâµÈ Á¤¸® ¸Þ¼Òµå¸¦ »ç¿ëÇϽʽÿÀ.
public void free() {
try {
OutputStream stream = getOutputStream();
stream.flush();
stream.close();
}
catch (IOException exc) {
LogUtility.log(exc);
}
}

private OutputStream getOutputStream() {
return _stream;
}

private transient OutputStream _stream;