Closeable, Flushable, AutoCloseablepublic static class ReliableFileDescriptor.AutoCloseFileOutputStream extends FileOutputStream
This class applies only to operations on the same device.
| 构造器 | 说明 |
|---|---|
AutoCloseFileOutputStream(ReliableFileDescriptor reliablefd) |
A constructor used to create an
AutoCloseFileOutputStream instance using
a ReliableFileDescriptor object. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
close() |
Closes this
AutoCloseFileOutputStream object,
whose ReliableFileDescriptor object is automatically closed as well. |
finalize, getChannel, getFD, write, write, writeclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflushpublic AutoCloseFileOutputStream(ReliableFileDescriptor reliablefd)
AutoCloseFileOutputStream instance using
a ReliableFileDescriptor object.reliablefd - Indicates the ReliableFileDescriptor object to use.public void close()
throws IOException
AutoCloseFileOutputStream object,
whose ReliableFileDescriptor object is automatically closed as well.close 在接口中 AutoCloseableclose 在接口中 Closeableclose 在类中 FileOutputStreamIOException - Throws this exception if an I/O error occurs.