equal
deleted
inserted
replaced
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); |