We're trying to move from using File to using Java 7's replacement, Path.
DatabaseBuilder currently forces us to provide a File. This means that in some situations, we have to copy the database to another filesystem in order for Jackcess to update it and then copy it back to where it's supposed to be, which is awkward.
If it allowed passing Path, that would be perfect.
If you can't build against Java 7 for some reason, allowing passing something like FileChannel might be a reasonable compromise. You could also abstract out your own concept of what a file is, which we could implement on top of path or on top of our own existing abstraction.
Is this the method you are looking for: http://jackcess.sourceforge.net/apidocs/com/healthmarketscience/jackcess/DatabaseBuilder.html#setChannel(java.nio.channels.FileChannel) ?
Yeah, definitely. Not sure how I missed that one. Something to investigate once I get a free moment that isn't right before a release of our own stuff.
any further feedback on this?
Yeah, what's there looks like it will work for us.
Closing this for now as FileChannel is already supported and i don't think jackcess will be requiring Java 7 anytime soon.