java net ContentHandler








Class java.net.ContentHandler





All Packages Class Hierarchy This Package Previous Next Index


Class java.net.ContentHandler


java.lang.Object
|
+----java.net.ContentHandler



public abstract class ContentHandler
extends Object

The abstract class 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.


See Also:
getContent, ContentHandlerFactory, getContent, URLConnection, getContent, setContentHandlerFactory








ContentHandler()







getContent(URLConnection)

Given a URL connect stream positioned at the beginning of the
representation of an object, this method reads that stream and
creates an object from it.







ContentHandler

public ContentHandler()






getContent

public abstract Object getContent(URLConnection urlc) throws IOException


Given a URL connect stream positioned at the beginning of the
representation of an object, this method reads that stream and
creates an object from it.


Parameters:
urlc - a URL connection.
Returns:
the object read by the ContentHandler.
Throws: IOException
if an I/O error occurs while reading the object.




All Packages Class Hierarchy This Package Previous Next Index

Submit a bug or feature - Version 1.1.7 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1995-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.




Wyszukiwarka

Podobne podstrony:
java net ContentHandlerFactory
java net URLStreamHandler
java net UnknownServiceException
java net UnknownHostException
java net URLStreamHandlerFactory
java net BindException
java net NoRouteToHostException
Package java net
java net URL
java net URLConnection
java net MalformedURLException
java net
java net URLEncoder
java net HttpURLConnection
java net ConnectException
java net SocketImplFactory
java net InetAddress
java net Socket
java net ServerSocket

więcej podobnych podstron