jokiazhang / metadata-extractor

Automatically exported from code.google.com/p/metadata-extractor
0 stars 0 forks source link

Provide a usable replacement for deprecated TiffMetadataReader.readMetadata #79

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
TiffMetadataReader.readMetadata got deprecated.

The reasoning (mentioned only in the comments, not in the Javadoc) was 
supposedly efficiency - it reads the whole file into a byte[] and then 
processes that.

Problem is, there is no usable replacement.

The other method takes a File. I don't have a File, so to use *that* method, 
now *I* have to copy all the data, only instead of copying it into a byte[], 
I'm now copying it into a File. This is obviously even slower than the method 
which got deprecated.

Please consider adding a method taking SeekableByteChannel or similar 
interface, so that we can adapt what we have to fit.

Original issue reported on code.google.com by trejkaz on 27 May 2013 at 11:51