public static class ParcelFileDescriptor.AutoCloseInputStream extends FileInputStream
ParcelFileDescriptor.close() for you when the stream is closed.| Constructor and Description |
|---|
AutoCloseInputStream(ParcelFileDescriptor pfd) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this stream.
|
available, finalize, getChannel, getFD, read, read, skipmark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, transferTopublic AutoCloseInputStream(ParcelFileDescriptor pfd)
public void close()
throws IOException
InputStreamclose in interface Closeableclose in interface AutoCloseableclose in class FileInputStreamIOException - if an error occurs while closing this stream.