~hjd/ubuntu/wily/xmlgraphics-commons/debian-merged

« back to all changes in this revision

Viewing changes to src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderRaw.java

  • Committer: Hans Joachim Desserud
  • Date: 2015-11-11 18:22:53 UTC
  • mfrom: (9.1.5 sid)
  • Revision ID: hans_joachim_desserud-20151111182253-zwi0frfm97j0wddn
  * Merge from Debian unstable.  Remaining changes:
    - d/control: Drop dependencies required for unit testing as they
      include libmockito-java which would pull maven into main, disable unit
      test execution.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * limitations under the License.
16
16
 */
17
17
 
18
 
/* $Id: ImageLoaderRaw.java 750418 2009-03-05 11:03:54Z vhennebert $ */
 
18
/* $Id: ImageLoaderRaw.java 1391005 2012-09-27 13:39:57Z mehdi $ */
19
19
 
20
20
package org.apache.xmlgraphics.image.loader.impl;
21
21
 
29
29
import org.apache.xmlgraphics.image.loader.ImageFlavor;
30
30
import org.apache.xmlgraphics.image.loader.ImageInfo;
31
31
import org.apache.xmlgraphics.image.loader.ImageSessionContext;
32
 
import org.apache.xmlgraphics.image.loader.util.ImageUtil;
 
32
import org.apache.xmlgraphics.io.XmlSourceUtil;
33
33
 
34
34
/**
35
35
 * ImageLoader for formats consumed "raw" (undecoded). Provides a raw/undecoded stream.
62
62
        }
63
63
        Source src = session.needSource(info.getOriginalURI());
64
64
        ImageRawStream rawImage = new ImageRawStream(info, getTargetFlavor(),
65
 
                ImageUtil.needInputStream(src));
 
65
                XmlSourceUtil.needInputStream(src));
66
66
        return rawImage;
67
67
    }
68
68