Closeable, AutoCloseablepublic static class ReliableFileDescriptor.AutoCloseFileInputStream extends FileInputStream
This class applies only to operations on the same device.
| 构造器 | 说明 |
|---|---|
AutoCloseFileInputStream(ReliableFileDescriptor reliablefd) |
A constructor used to create an
AutoCloseFileInputStream instance using
a ReliableFileDescriptor object. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
close() |
Closes this
AutoCloseFileInputStream object,
whose ReliableFileDescriptor object is automatically closed as well. |
int |
read() |
Reads an integer from this
AutoCloseFileInputStream object. |
available, finalize, getChannel, getFD, read, read, skipmark, markSupported, resetpublic AutoCloseFileInputStream(ReliableFileDescriptor reliablefd)
AutoCloseFileInputStream instance using
a ReliableFileDescriptor object.reliablefd - Indicates the ReliableFileDescriptor object to use.public void close()
throws IOException
AutoCloseFileInputStream object,
whose ReliableFileDescriptor object is automatically closed as well.close 在接口中 AutoCloseableclose 在接口中 Closeableclose 在类中 FileInputStreamIOException - Throws this exception if an I/O error occurs.public int read()
throws IOException
AutoCloseFileInputStream object.read 在类中 FileInputStreamIOException - Throws this exception if an I/O error occurs.