1.1
Jimfs 1.1 final release.
Maven dependency:
<dependency>
<groupId>com.google.jimfs</groupId>
<artifactId>jimfs</artifactId>
<version>1.1</version>
</dependency>
Javadoc for the release can be viewed at: http://google.github.io/jimfs/releases/1.1/api/docs/
API diffs between Jimfs 1.0 and this release can be viewed at: http://google.github.io/jimfs/releases/1.1/api/diffs/
This release contains no changes from 1.1-rc1.
What's new in 1.1
- Now possible to configure the rate at which a
WatchService
polls by callingsetWatchServiceConfiguration(WatchServiceConfiguration.polling(interval, timeUnit))
when building aConfiguration
. (#14) - Now possible to get the default
Configuration
(based on the current operating system) that is used when calling theJimfs
factory methods that do not take aConfiguration
parameter, viaConfiguration.forCurrentPlatform()
. Mainly useful if you want to create a slightly modified (e.g. with a differentWatchService
polling rate) version of thatConfiguration
. URL
objects can now be created from JimfsPath
s (usingpath.toUri().toURL()
). SuchURL
s support reading the contents of the file through anInputStream
, with behavior similar to that of a normalfile:
URL
object. (#13)- URIs for directories now end in a trailing
/
. (#16) - Fixed an issue with environments where Java SDK code (such as the
FileSystems
class and by extension theFileSystemProvider
implementations it loads as services) and user code (including theJimfs
entry point class) are loaded by different classloaders. (#18)