Releases: swaechter/smbjwrapper
Releases · swaechter/smbjwrapper
1.2.0
New Features
- Use the latest smbj version
0.11.5
- The
SmbConnection
class can now delay the SMB connection until the first real SMB request is made (So called lazy initialization). This feature is useful for systems that create too many parallel SMB sessions that would exceed the SMB session pool. The SMB connection is made on the first method call that requires an active SMB connection. - The
SmbConnection
class now provides aSmbConnection.isConnectionAlive()
method to check if the SMB connection is alive. If the SMB connection is not alive, a call toSmbConnection.ensureConnectionIsAlive()
recreates the SMB connection if required. This feature is useful for system that use a long livingSmbConnection
where the SMB connection times out and it's not possible to recreate theSmbConnection
manually. - The
SmbOutputStream
now provides two overloaded methodsSmbOutputStream.write(bytes)
andSmbOutputStream.write(bytes, offset, length)
methods for more fine grained write scenarios. The second function only works in non-appending context.
Breaking Changes
- None
Known Issues
- None
1.1.0
1.0.0
New Features
- First stable release with version 1.0.0
- Use the latest smbj version
v0.10.0
- Make it possible to append content to an existing file via
SmbFile.getOutputStream(boolean appendContent)
- Make it possible to check if a file is hidden via
SmbFile.isHidden()
- Make it possible to list files and directories via
SmbDirectory.listFiles()
Breaking Changes
- Renamed all classes from
Shared*
toSmb*
- The
SmbItem.renameTo
method now returns the renamed item (The current object is not touched anymore because it is immutable)
Known Issues
- None
0.0.8
New Features
- Add the possibility to list files/directories via
SharedDirectory.listFiles(Predicate<SharedItem> searchPredicate, boolean searchRecursive)
andSharedDirectory.listFiles(String searchPattern, boolean searchRecursive)
- Add the possibility to rename files/directories with
SharedItem.renameTo(String newFileName, boolean replaceIfExist)
- Add the possibility to ensure the directory existence with
SharedDirectory.ensureExists()
- Use a more sophisticated exception type (IOException instead of Exception) for
SharedConnection.close()
Breaking Changes
- None
Known Issues
- None
0.0.7
New Features
- Add the possibility to use a fast server side copy on the same share with
SharedFile.copyFileViaServerSideCopy(SharedFile destinationSharedFile)
. For more information check out this article: https://wiki.samba.org/index.php/Server-Side_Copy
Breaking Changes
- Don't create an empty file when someone calls
SharedFile.getInputStream()
on a non-existing file, but instead fail with a smbj exception
Known Issues
- None
0.0.6
New Features
- Add the possibility to use a custom
SmbConfig
config in theSharedConnection
- Add the possibility to read time attributes like creation time, last access time, last change time and change time
- Add the possibility to read the file size of a file
- Automatically create a non-existing file when someone is accessing the input stream to read/download a file
Breaking Changes
- None
Known Issues
- Somehow the creation time of a file gets updated when someone is accessing the input stream of the file. This looks like a wrong open mode or something similar
0.0.5
0.0.4
0.0.3
New Features
- Redesign the session management and provide a shared connection. This results in a better performance and fewer open SMB sessions, but will lead to a breaking change
- Redesign the internal functionality and make it faster
- Adapt the documentation
Breaking Changes
- Provide a shared connection that provides a better performance and results in fewer open sessions. All code has to be adapted according to the
README.md
Known Issues
- No new issues. New bugs due the redesign might occur (See the existing issues)
0.0.2
New Features
- Let the user chose the SLF4J logger backend implementation. This provides more flexibility, but will lead to a breaking change
- Improve the documentation
Breaking Changes
- Don't provide a default SLF4J logger backend implementation by default (
slf4j-simple
). The user has to provide an own implementation as described in theREADME.md
. For more information see commit 3e872b7
Known Issues
- No new issues (See the existing issues)