public static class ParcelFileDescriptor.AutoCloseOutputStream extends FileOutputStream
ParcelFileDescriptor.close() for you when the stream is closed.| Constructor and Description |
|---|
AutoCloseOutputStream(ParcelFileDescriptor pfd) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this output stream and releases any system resources
associated with this stream.
|
finalize, getChannel, getFD, write, writeflush, nullOutputStream, writepublic AutoCloseOutputStream(ParcelFileDescriptor pfd)
public void close()
throws IOException
OutputStreamclose
is that it closes the output stream. A closed stream cannot perform
output operations and cannot be reopened.
The close method of OutputStream does nothing.
close in interface Closeableclose in interface AutoCloseableclose in class FileOutputStreamIOException - if an I/O error occurs.