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.<<i>contentType</i>> |
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 <<i>contentType</i>> 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. |