66
77### Description
88
9- * The goal and main features of this fork did not changed , so this description is the same as the original library*
9+ * The goal and main features of this fork did not change , so this description is the same as the original library*
1010
1111This project represents the most robust Java integrations with Phil Harvey's
1212excellent ExifTool available.
1313
14- The goal of this project was to provide such a tight, well designed and performant
14+ The goal of this project was to provide such a tight, well- designed and performant
1515integration with ExifTool that any Java developer using the class would have no
1616idea that they weren't simply calling into a standard Java library while still
1717being able to leverage the unmatched robustness of ExifTool.
@@ -38,7 +38,7 @@ checking and error reporting during instantiation and use.
3838For example, if you specify that you want to use ` stay_open ` support, the
3939ExifTool class will actually check the native ExifTool executable for support
4040for that feature before allowing the feature to be turned on and report the
41- problem to the caller along with potential work-arounds if necessary.
41+ problem to the caller along with potential workarounds if necessary.
4242
4343Additionally, all external calls to the process are safely wrapped and reported
4444with detailed exceptions if problems arise instead of just letting unknown
@@ -59,11 +59,11 @@ This library is a fork of [https://github.com/rkalla/exiftool](https://github.co
5959- ExifTool is now thread-safe.
6060- Integration with ` slf4j ` and ` log4j ` .
6161
62- More informations below.
62+ More information below.
6363
6464### Support
6565
66- This library is tested against Java >= 7 , Linux and Windows.
66+ This library is tested against Java >= 8 , Linux and Windows.
6767
6868
6969### Installation
@@ -203,9 +203,7 @@ import com.thebuzzmedia.exiftool.Tag;
203203import com.thebuzzmedia.exiftool.core.StandardTag ;
204204
205205import java.io.File ;
206- import java.util.ArrayList ;
207206import java.util.Arrays ;
208- import java.util.List ;
209207import java.util.Map ;
210208import java.util.concurrent.ExecutorService ;
211209import java.util.concurrent.Executors ;
@@ -241,16 +239,13 @@ public class ExifParser {
241239
242240 try {
243241 for (final String image : args) {
244- executor. submit(new Runnable () {
245- @Override
246- public void run () {
242+ executor. submit(() - > {
247243 try {
248244 System . out. println(" Tags: " + parse(image));
249245 }
250246 catch (Exception ex) {
251247 ex. printStackTrace();
252248 }
253- }
254249 });
255250 }
256251 } finally {
@@ -280,7 +275,7 @@ Benchmark [tags=49, images=10, iterations=25]
280275You can see that utilizing the -stay_open functionality provided in ExifTool
281276you can realize magnitudes times more performance.
282277
283- Also the bigger of a test you run (more iterations) the bigger the performance
278+ Also, the bigger of a test you run (more iterations) the bigger the performance
284279margin increases.
285280
286281### Troubleshooting
@@ -316,15 +311,15 @@ Because of this and because of the expectation that ExifTool in daemon mode
316311will be the primary use-case for this class, limited support for ` InputStream `
317312parsing was designed out of this class.
318313
319- - Do I need to manually call ` close() ` to cleanup a daemon ExifTool?
314+ - Do I need to manually call ` close() ` to clean up a daemon ExifTool?
320315
321316This is done automatically for you when ` exifTool ` instance is garbage collected or
322317via the cleanup thread the class employs when a daemon instance of ExifTool is created.
323318Unless you modified the delay of the cleanup thread (and set it to 0 or less), the
324319automatic cleanup thread is enabled and will clean up those resources for
325320you after the specified amount of inactivity.
326321
327- Nevetheless , I suggest you to use exiftool with a ` try-with-resource ` and to force ` close `
322+ Nevertheless , I suggest you to use exiftool with a ` try-with-resource ` and to force ` close `
328323operation when your program stops.
329324
330325### Reference
0 commit comments