diff --git a/ChangeLog.txt b/ChangeLog.txt index d9df904c..f0c804ef 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -11,6 +11,10 @@ use of AltiVec instructions. [2] Added a new libjpeg API function (jpeg_skip_scanlines()) that can be used to partially decode a JPEG image. See libjpeg.txt for more details. +[3] The TJCompressor and TJDecompressor classes in the TurboJPEG Java API now +implement the Closeable interface, so those classes can be used with a +try-with-resources statement. + 1.4.1 ===== diff --git a/java/doc/org/libjpegturbo/turbojpeg/TJCompressor.html b/java/doc/org/libjpegturbo/turbojpeg/TJCompressor.html index b7fa3db4..88f56443 100644 --- a/java/doc/org/libjpegturbo/turbojpeg/TJCompressor.html +++ b/java/doc/org/libjpegturbo/turbojpeg/TJCompressor.html @@ -90,10 +90,15 @@
public class TJCompressor
-extends java.lang.Object
+extends java.lang.Object
+implements java.io.Closeable
public void close() - throws java.lang.Exception+ throws java.io.IOException
java.lang.Exceptionclose in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic class TJDecompressor
-extends java.lang.Object
+extends java.lang.Object
+implements java.io.Closeable
public void close() - throws java.lang.Exception+ throws java.io.IOException
java.lang.Exceptionclose in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic class TJTransformer
diff --git a/java/doc/org/libjpegturbo/turbojpeg/package-tree.html b/java/doc/org/libjpegturbo/turbojpeg/package-tree.html
index 1033ee56..cda68577 100644
--- a/java/doc/org/libjpegturbo/turbojpeg/package-tree.html
+++ b/java/doc/org/libjpegturbo/turbojpeg/package-tree.html
@@ -80,8 +80,8 @@