jdk/src/share/classes/java/net/ContentHandler.java
changeset 11362 02eae572563e
parent 10596 39b3a979e600
child 14342 8435a30053c1
equal deleted inserted replaced
11361:daa4d069c514 11362:02eae572563e
    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;