xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gad...@apache.org
Subject svn commit: r1618501 - /xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderRawPNG.java
Date Sun, 17 Aug 2014 19:01:25 GMT
Author: gadams
Date: Sun Aug 17 19:01:25 2014
New Revision: 1618501

URL: http://svn.apache.org/r1618501
Log:
Fix deprecation.

Modified:
    xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderRawPNG.java

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderRawPNG.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderRawPNG.java?rev=1618501&r1=1618500&r2=1618501&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderRawPNG.java
(original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderRawPNG.java
Sun Aug 17 19:01:25 2014
@@ -38,6 +38,7 @@ import org.apache.xmlgraphics.image.load
 import org.apache.xmlgraphics.image.loader.ImageInfo;
 import org.apache.xmlgraphics.image.loader.ImageSessionContext;
 import org.apache.xmlgraphics.image.loader.util.ImageUtil;
+import org.apache.xmlgraphics.io.XmlSourceUtil;
 import org.apache.xmlgraphics.util.MimeConstants;
 
 public class ImageLoaderRawPNG extends AbstractImageLoader {
@@ -67,7 +68,7 @@ public class ImageLoaderRawPNG extends A
         Source src = session.needSource(info.getOriginalURI());
         ImageInputStream in = ImageUtil.needImageInputStream(src);
         // Remove streams as we do things with them at some later time.
-        ImageUtil.removeStreams(src);
+        XmlSourceUtil.removeStreams(src);
         SeekableStream seekStream = new ImageInputStreamSeekableStreamAdapter(in);
         PNGFile im = new PNGFile(seekStream);
         ImageRawPNG irpng = im.getImageRawPNG(info);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message