jdk/src/share/classes/sun/net/www/content/image/jpeg.java
changeset 20754 3d7b2fafc34b
parent 14342 8435a30053c1
child 23010 6dadb192ad81
equal deleted inserted replaced
20753:95a52f518b5a 20754:3d7b2fafc34b
    34 public class jpeg extends ContentHandler {
    34 public class jpeg extends ContentHandler {
    35     public Object getContent(URLConnection urlc) throws java.io.IOException {
    35     public Object getContent(URLConnection urlc) throws java.io.IOException {
    36         return new URLImageSource(urlc);
    36         return new URLImageSource(urlc);
    37     }
    37     }
    38 
    38 
       
    39     @SuppressWarnings("rawtypes")
    39     public Object getContent(URLConnection urlc, Class[] classes) throws IOException {
    40     public Object getContent(URLConnection urlc, Class[] classes) throws IOException {
    40         Class<?>[] cls = classes;
    41         Class<?>[] cls = classes;
    41         for (int i = 0; i < cls.length; i++) {
    42         for (int i = 0; i < cls.length; i++) {
    42             if (cls[i].isAssignableFrom(URLImageSource.class)) {
    43             if (cls[i].isAssignableFrom(URLImageSource.class)) {
    43                 return new URLImageSource(urlc);
    44                 return new URLImageSource(urlc);