Skip to content

Releases: swaechter/smbjwrapper

1.2.0

28 Aug 19:18
Compare
Choose a tag to compare

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 a SmbConnection.isConnectionAlive() method to check if the SMB connection is alive. If the SMB connection is not alive, a call to SmbConnection.ensureConnectionIsAlive() recreates the SMB connection if required. This feature is useful for system that use a long living SmbConnection where the SMB connection times out and it's not possible to recreate the SmbConnection manually.
  • The SmbOutputStream now provides two overloaded methods SmbOutputStream.write(bytes) and SmbOutputStream.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

16 May 15:27
Compare
Choose a tag to compare

New Features

  • None

Breaking Changes

  • Rename the methods SmbDirectory.listFiles(*) to SmbDirectory.listItems(*). Otherwise developer expect the method only returns files - but it returns files and directories.

Known Issues

  • None

1.0.0

16 May 14:49
Compare
Choose a tag to compare

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* to Smb*
  • 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

16 Oct 21:00
Compare
Choose a tag to compare

New Features

  • Add the possibility to list files/directories via SharedDirectory.listFiles(Predicate<SharedItem> searchPredicate, boolean searchRecursive) and SharedDirectory.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

26 Sep 10:09
Compare
Choose a tag to compare

New Features

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

13 Aug 08:04
Compare
Choose a tag to compare

New Features

  • Add the possibility to use a custom SmbConfig config in the SharedConnection
  • 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

04 Aug 20:06
Compare
Choose a tag to compare

New Features

  • Fix a bug that doesn't allow the download of read-only files

Breaking Changes

  • The method SharedItem.getSmbPath doesn't return a trailing back slash. This needs some further investigation

Known Issues

  • No new issues (See the existing issues)

0.0.4

23 Feb 14:50
Compare
Choose a tag to compare

New Features

  • Clean up the library and improve some internal code

Breaking Changes

  • None

Known Issues

  • No new issues (See the existing issues)

0.0.3

23 Feb 12:46
Compare
Choose a tag to compare

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

22 Feb 08:05
Compare
Choose a tag to compare

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 the README.md. For more information see commit 3e872b7

Known Issues

  • No new issues (See the existing issues)