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 file output stream and releases any system resources
associated with this stream.
|
finalize, getChannel, getFD, write, write, write
flush
public AutoCloseOutputStream(ParcelFileDescriptor pfd)
public void close() throws IOException
FileOutputStream
If this stream has an associated channel then the channel is closed as well.
close
in interface Closeable
close
in interface AutoCloseable
close
in class FileOutputStream
IOException
- if an I/O error occurs.