equal
deleted
inserted
replaced
94 * the first match of the suggested types. |
94 * the first match of the suggested types. |
95 * null if none of the requested are supported. |
95 * null if none of the requested are supported. |
96 * @exception IOException if an I/O error occurs while reading the object. |
96 * @exception IOException if an I/O error occurs while reading the object. |
97 * @since 1.3 |
97 * @since 1.3 |
98 */ |
98 */ |
99 public Object getContent(URLConnection urlc, Class<?>[] classes) throws IOException { |
99 public Object getContent(URLConnection urlc, Class[] classes) throws IOException { |
100 Object obj = getContent(urlc); |
100 Object obj = getContent(urlc); |
101 |
101 |
102 for (int i = 0; i < classes.length; i++) { |
102 for (int i = 0; i < classes.length; i++) { |
103 if (classes[i].isInstance(obj)) { |
103 if (classes[i].isInstance(obj)) { |
104 return obj; |
104 return obj; |