v.3.1.0
features:
-
added @B2Json.sensitive annotation to redact fields when B2Json is
used with the new redactSensitive option set to true. -
added B2ContentSource.createContentSourceWithRangeOrNull() which
is used by the large file uploader to give the content source the
opportunity to make a more efficient content source for a range of
the file. this is really useful if the content isn't coming from
memory or a local file because the default implementation reads
and discards data to get to the desired range. Added sample
UploadLargeFileFromUrl and UrlContentSource. -
added support for using okhttp3 as the HTTP client instead of
Apache's HttpClient. there are limitations with this
implementation for uploading files that are about 2GB or
larger. see README.md for details. -
added B2StorageClientFactory interface for creating
B2StorageClients without having to select a particular
implementation at build time. The static createDefaultFactory()
method can be used to create a B2StorageClient using either of the
two official web client implementations, whichever is in the
classpath at runtime. The sample programs use this now so they
can be used with either web client implementation.
other improvements:
- don't use default character set in B2Json; explicitly use UTF8.