Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
java.lang.Object | +----java.net.ContentHandler
ContentHandler
is the superclass
of all classes that read an Object
from a
URLConnection
.
An application does not generally call the
getContent
method in this class directly. Instead, an
application calls the getContent
method in class
URL
or in URLConnection
.
The application's content handler factory (an instance of a class that
implements the interface ContentHandlerFactory
set
up by a call to setContentHandler
) is
called with a String
giving the MIME type of the
object being received on the socket. The factory returns an
instance of a subclass of ContentHandler
, and its
getContent
method is called to create the object.
Method Summary | |
Object | getContent(URLConnection urlc)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public abstract Object getContent(URLConnection urlc) throws IOException
urlc
- a URL connection.
ContentHandler
.Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |