Changelog History
-
v1.1 Changes
February 12, 2016๐ 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)
- ๐ Now possible to configure the rate at which a
-
v1.1-rc1 Changes
January 22, 2016๐ First release candidate for Jimfs 1.1.
Maven dependency:
\<dependency\> \<groupId\>com.google.jimfs\</groupId\> \<artifactId\>jimfs\</artifactId\> \<version\>1.1-rc1\</version\> \</dependency\>
๐ Javadoc for the release can be viewed at: http://google.github.io/jimfs/releases/1.1-rc1/api/docs/
๐ API diffs between Jimfs 1.0 and this release can be viewed at: http://google.github.io/jimfs/releases/1.1-rc1/api/diffs/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)
- ๐ Now possible to configure the rate at which a
-
v1.0 Changes
June 16, 2014๐ Final 1.0 release. This release contains no changes from 1.0-rc3.
๐ This release can be used with Maven as:
\<dependency\> \<groupId\>com.google.jimfs\</groupId\> \<artifactId\>jimfs\</artifactId\> \<version\>1.0\</version\> \</dependency\>
๐ Javadoc for the release can be viewed at: http://google.github.io/jimfs/releases/1.0/api/docs/
-
v1.0-rc3 Changes
June 10, 2014๐ Third release candidate. This release changes the package for all classes from
com.google.jimfs
tocom.google.common.jimfs
.๐ This release can be used with Maven as:
\<dependency\> \<groupId\>com.google.jimfs\</groupId\> \<artifactId\>jimfs\</artifactId\> \<version\>1.0-rc3\</version\> \</dependency\>
-
v1.0-rc2 Changes
May 23, 2014๐ Second release candidate, containing a number of fixes and usability improvements.
๐ This release can be used with Maven as:
\<dependency\> \<groupId\>com.google.jimfs\</groupId\> \<artifactId\>jimfs\</artifactId\> \<version\>1.0-rc2\</version\> \</dependency\>
Notable changes:
FileSystem
instances are now cached statically, so even if multiple instances ofJimfsFileSystemProvider
are created, they'll share the same cache of file systems. This is meant to ensure that whatClassLoader
happens to loadJimfsFileSystemProvider
has no effect on behavior (the provider instance itself is only cached if it can be loaded by the systemClassLoader
).FileSystem
instances are now cached with weak references, allowing them to be garbage collected when no references remain even ifclose()
has not been called. This is preferable in most cases. The only negative impact is that if you wish to hold on to aURI
(either for aFileSystem
or aPath
in that file system) and later use it to retrieve thatFileSystem
/Path
, it may not work unless you ensure that a strong reference to theFileSystem
is held somewhere.- Closing a
FileSystem
now closes all open streams, channels, etc. for that file system and causes mostFiles
methods to throwClosedFileSystemException
. - ๐ The jar now has OSGi metadata.
-
v1.0-rc1 Changes
February 26, 2014๐ Initial release candidate, mainly so there's an artifact available in Maven Central that people can use.
๐ This release can be used with Maven as:
\<dependency\> \<groupId\>com.google.jimfs\</groupId\> \<artifactId\>jimfs\</artifactId\> \<version\>1.0-rc1\</version\> \</dependency\>