linpeixun / thumbnailator

Automatically exported from code.google.com/p/thumbnailator
Other
0 stars 0 forks source link

Replace the use of File with Path #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system? Which
version of Java (Sun/Oracle? OpenJDK?) ? Java 7

Please provide any additional information below.
Java 7 introduced Path. Perhaps you can use Path instead of File.

Original issue reported on code.google.com by ramonjsa...@gmail.com on 10 Apr 2012 at 2:22

GoogleCodeExporter commented 9 years ago
Thumbnailator is targeted at Java 5 and above.

Replacing the use of `File` with `Path` will make the library less accessible 
to those using Java 5 and 6, which I would suspect is much more prevalent than 
Java 7.

If there is a compelling reason to support `Path` *in addition to* `File`, then 
that could be option to consider, so please let me know if you're aware of any 
specific reasons why the support for `Path` would be beneficial.

(Considering the `Path` interface has a `toFile` method, I am inclined to think 
that the current APIs accepting `File` could be sufficient. However, I am not 
familiar with the NIO2 API, so I'm open to ideas.)

Original comment by coobird...@gmail.com on 10 Apr 2012 at 1:36

GoogleCodeExporter commented 9 years ago
This issue has been open for 6 months without significant interest from other 
people (this issue has only 1 star), so I'll be closing this enhancement 
request.

Original comment by coobird...@gmail.com on 8 Oct 2012 at 5:31