Skip to content

Commit 11eac7b

Browse files
committed
Fixup readme
1 parent 16ae32c commit 11eac7b

1 file changed

Lines changed: 9 additions & 14 deletions

File tree

README.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
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

1111
This project represents the most robust Java integrations with Phil Harvey's
1212
excellent 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
1515
integration with ExifTool that any Java developer using the class would have no
1616
idea that they weren't simply calling into a standard Java library while still
1717
being able to leverage the unmatched robustness of ExifTool.
@@ -38,7 +38,7 @@ checking and error reporting during instantiation and use.
3838
For example, if you specify that you want to use `stay_open` support, the
3939
ExifTool class will actually check the native ExifTool executable for support
4040
for 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

4343
Additionally, all external calls to the process are safely wrapped and reported
4444
with 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;
203203
import com.thebuzzmedia.exiftool.core.StandardTag;
204204

205205
import java.io.File;
206-
import java.util.ArrayList;
207206
import java.util.Arrays;
208-
import java.util.List;
209207
import java.util.Map;
210208
import java.util.concurrent.ExecutorService;
211209
import 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]
280275
You can see that utilizing the -stay_open functionality provided in ExifTool
281276
you 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
284279
margin increases.
285280

286281
### Troubleshooting
@@ -316,15 +311,15 @@ Because of this and because of the expectation that ExifTool in daemon mode
316311
will be the primary use-case for this class, limited support for `InputStream`
317312
parsing 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

321316
This is done automatically for you when `exifTool` instance is garbage collected or
322317
via the cleanup thread the class employs when a daemon instance of ExifTool is created.
323318
Unless you modified the delay of the cleanup thread (and set it to 0 or less), the
324319
automatic cleanup thread is enabled and will clean up those resources for
325320
you 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`
328323
operation when your program stops.
329324

330325
### Reference

0 commit comments

Comments
 (0)