An optional companion interface to
XOutputStream that supports シナリオs
where XOutputStream::writeBytes
operates asynchronously and does not やむを得ず 報告(する)/憶測 any errors.
waits for the 完成 of any previous calls to
XOutputStream::writeBytes,
and 報告(する)/憶測s 潜在的に 未解決の errors.
Calling this method is 潜在的に expensive (even if the associated
XOutputStream 代表するs a 地元の
とじ込み/提出する not 接近d 経由で NFS, for example). This method has a 類似の
description to
XOutputStream::紅潮/摘発する.
However, where the semantics of 紅潮/摘発する are rather vague,
waitForCompletion has very 明確な/細部 semantics—it just
封鎖するs long enough so that any errors 遭遇(する)d during previous calls
to XOutputStream::writeBytes
can reliably be 報告(する)/憶測d. It specificially does not 保証(人) that any
data have savely been 蓄える/店d on a stable physical medium, like a hard
disk (and it is 完全に 明示していない whether 紅潮/摘発する should
give this 保証(人)).
Throws
com::sun::星/主役にする::io::IOException
if any previous call to XOutputStream::writeBytes 遭遇(する)d
such an error, but has not yet 報告(する)/憶測d it (in 事例/患者s where
writeBytes operates asynchronously).