@tika.apache.org
*Subject:* RE: Adding API support for Java 7's java.nio.file.Path
I’ve formalized this issue here:
https://issues.apache.org/jira/browse/TIKA-1726
Please take the time and share your opinion on the new method names, so I
can go ahead a provide some patches.
*From:* Yaniv Kunda
*To:* dev@tika.apache.org
*Subject:* Re: Adding API support for Java 7's java.nio.file.Path
I've already done that, I'm just waiting for the group's opinions on names
for the new methods, especially the two that I've added to augment
org.apache.tika.io.TemporaryResources#createTemporaryFile
gt;:
>
> >
> > > From: Yaniv Kunda
> > > Sent: August 29, 2015 2:21:23am PDT
> > > To: dev@tika.apache.org
> > > Subject: RE: Adding API support for Java 7's java.nio.file.Path
> > >
> > > In addition to the discussion I've raised about
From: Yaniv Kunda
Sent: August 29, 2015 2:21:23am PDT
To: dev@tika.apache.org
Subject: RE: Adding API support for Java 7's java.nio.file.Path
In addition to the discussion I've raised about the methods returning a
File, I have another problem:
Some of the methods that accept a File throw
To: dev@tika.apache.org
Subject: RE: Adding API support for Java 7's java.nio.file.Path
I can point out several benefits of supporting the new API, in no particular
order:
- Exception handling: operations like File.delete return a boolean which
provides less useful information if the operation failed
: Wednesday, August 26, 2015 5:31 PM
To: dev@tika.apache.org
Subject: RE: Adding API support for Java 7's java.nio.file.Path
I can point out several benefits of supporting the new API, in no particular
order:
- Exception handling: operations like File.delete return a boolean which
provides less useful
: Nick Burch [mailto:apa...@gagravarr.org]
Sent: Wednesday, August 26, 2015 13:27
To: dev@tika.apache.org
Subject: Re: Adding API support for Java 7's java.nio.file.Path
On Wed, 26 Aug 2015, Yaniv Kunda wrote:
I would like to propose adding support for Java 7’s java.nio.file.Path
as an alternative
I would like to propose adding support for Java 7’s java.nio.file.Path as
an alternative to those methods in the API that deal with a java.io.File.
This is pretty trivial for File as a param, as new overloaded
methods/constructors can be added that accept a Path.
A few questions arise:
1)
On Wed, 26 Aug 2015, Yaniv Kunda wrote:
I would like to propose adding support for Java 7’s java.nio.file.Path
as an alternative to those methods in the API that deal with a
java.io.File.
Any chance you could briefly summarise what advantages this would give to
us and/or our users?
1)