Merge "ExifInterface: inform the developers to close their FD/streams" into nyc-dev
am: 6d01f0a
* commit '6d01f0af4301341975e66475758e4e5c49f95d40':
ExifInterface: inform the developers to close their FD/streams
Change-Id: Ia3eeaef1b5f01ee1a0a2936b24c77c890f22dfb9
This commit is contained in:
@@ -697,7 +697,8 @@ public class ExifInterface {
|
||||
|
||||
/**
|
||||
* Reads Exif tags from the specified image file descriptor. Attribute mutation is supported
|
||||
* for writable and seekable file descriptors only.
|
||||
* for writable and seekable file descriptors only. This constructor will not rewind the offset
|
||||
* of the given file descriptor. Developers should close the file descriptor after use.
|
||||
*/
|
||||
public ExifInterface(FileDescriptor fileDescriptor) throws IOException {
|
||||
if (fileDescriptor == null) {
|
||||
@@ -730,7 +731,8 @@ public class ExifInterface {
|
||||
|
||||
/**
|
||||
* Reads Exif tags from the specified image input stream. Attribute mutation is not supported
|
||||
* for input streams.
|
||||
* for input streams. The given input stream will proceed its current position. Developers
|
||||
* should close the input stream after use.
|
||||
*/
|
||||
public ExifInterface(InputStream inputStream) throws IOException {
|
||||
if (inputStream == null) {
|
||||
|
||||
Reference in New Issue
Block a user