mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-02 12:10:14 +00:00
8177452: Syntax errors in ContentHandler class documentation
Reviewed-by: chegar
This commit is contained in:
parent
dccdbdd2d2
commit
bfe18c7aee
@ -37,10 +37,10 @@ import java.io.IOException;
|
||||
* application calls the {@code getContent} method in class
|
||||
* {@code URL} or in {@code URLConnection}.
|
||||
* The application's content handler factory (an instance of a class that
|
||||
* implements the interface {@code ContentHandlerFactory} set
|
||||
* up by a call to {@code setContentHandler}) is
|
||||
* called with a {@code String} giving the MIME type of the
|
||||
* object being received on the socket. The factory returns an
|
||||
* implements the interface {@code ContentHandlerFactory} set up by a call to
|
||||
* {@link URLConnection#setContentHandlerFactory(ContentHandlerFactory)
|
||||
* setContentHandlerFactory} is called with a {@code String} giving the
|
||||
* MIME type of the object being received on the socket. The factory returns an
|
||||
* instance of a subclass of {@code ContentHandler}, and its
|
||||
* {@code getContent} method is called to create the object.
|
||||
* <p>
|
||||
@ -99,7 +99,8 @@ public abstract class ContentHandler {
|
||||
* representation of an object, this method reads that stream and
|
||||
* creates an object that matches one of the types specified.
|
||||
*
|
||||
* The default implementation of this method should call getContent()
|
||||
* The default implementation of this method should call
|
||||
* {@link #getContent(URLConnection)}
|
||||
* and screen the return type for a match of the suggested types.
|
||||
*
|
||||
* @param urlc a URL connection.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user