jdk/src/share/classes/java/net/URLConnection.java
changeset 24260 55a72a7e0cf9
parent 22119 da8b8a10483f
child 24865 09b1d992ca72
equal deleted inserted replaced
24253:ce29e10e4b41 24260:55a72a7e0cf9
   702      *     {@code createContentHandler} method of that instance is called
   702      *     {@code createContentHandler} method of that instance is called
   703      *     with the content type as an argument; the result is a content
   703      *     with the content type as an argument; the result is a content
   704      *     handler for that content type.
   704      *     handler for that content type.
   705      * <li>If no content handler factory has yet been set up, or if the
   705      * <li>If no content handler factory has yet been set up, or if the
   706      *     factory's {@code createContentHandler} method returns
   706      *     factory's {@code createContentHandler} method returns
   707      *     {@code null}, then the application loads the class named:
   707      *     {@code null}, then this method tries to load a content handler
   708      *     <blockquote><pre>
   708      *     class as defined by {@link java.net.ContentHandler ContentHandler}.
   709      *         sun.net.www.content.&lt;<i>contentType</i>&gt;
   709      *     If the class does not exist, or is not a subclass of {@code
   710      *     </pre></blockquote>
   710      *     ContentHandler}, then an {@code UnknownServiceException} is thrown.
   711      *     where &lt;<i>contentType</i>&gt; is formed by taking the
       
   712      *     content-type string, replacing all slash characters with a
       
   713      *     {@code period} ('.'), and all other non-alphanumeric characters
       
   714      *     with the underscore character '{@code _}'. The alphanumeric
       
   715      *     characters are specifically the 26 uppercase ASCII letters
       
   716      *     '{@code A}' through '{@code Z}', the 26 lowercase ASCII
       
   717      *     letters '{@code a}' through '{@code z}', and the 10 ASCII
       
   718      *     digits '{@code 0}' through '{@code 9}'. If the specified
       
   719      *     class does not exist, or is not a subclass of
       
   720      *     {@code ContentHandler}, then an
       
   721      *     {@code UnknownServiceException} is thrown.
       
   722      * </ol>
   711      * </ol>
   723      *
   712      *
   724      * @return     the object fetched. The {@code instanceof} operator
   713      * @return     the object fetched. The {@code instanceof} operator
   725      *               should be used to determine the specific kind of object
   714      *               should be used to determine the specific kind of object
   726      *               returned.
   715      *               returned.