X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Futils%2FImage.java;h=3e65364bcfee3544f3dd09d7c374a2ee3884c2fc;hb=daf0fd5a9ff403ca020d95f50b94b6e1c75a569a;hp=64f7b5a18f583ca2df5ebb055f3ac081f36ea9eb;hpb=5221cf7f72655a6e27af81167a4a3f237750c7ca;p=nikiroo-utils.git diff --git a/src/be/nikiroo/utils/Image.java b/src/be/nikiroo/utils/Image.java index 64f7b5a..3e65364 100644 --- a/src/be/nikiroo/utils/Image.java +++ b/src/be/nikiroo/utils/Image.java @@ -60,8 +60,9 @@ public class Image implements Closeable, Serializable { /** * Create an image from Base64 encoded data. * - * @deprecated Please use {@link Image#Image(InputStream)} instead, with a - * {@link Base64InputStream} + *

+ * Please use {@link Image#Image(InputStream)} when possible instead, with a + * {@link Base64InputStream}; it can be much more efficient. * * @param base64EncodedData * the Base64 encoded data as a String @@ -69,7 +70,6 @@ public class Image implements Closeable, Serializable { * @throws IOException * in case of I/O error or badly formated Base64 */ - @Deprecated public Image(String base64EncodedData) throws IOException { this(new Base64InputStream(new ByteArrayInputStream( StringUtils.getBytes(base64EncodedData)), false)); @@ -235,6 +235,7 @@ public class Image implements Closeable, Serializable { * @throws ClassNotFoundException * will not be thrown by this method */ + @SuppressWarnings("unused") private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { data = getTemporaryFile();