<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.net.ContentHandler
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.net.html">This Package</a>  <a href="Package-java.net.html">Previous</a>  <a href="java.net.DatagramPacket.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.net.ContentHandler
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.net.ContentHandler
</pre>
<hr>
<dl>
  <dt> public abstract class <b>ContentHandler</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
</dl>
The abstract class <code>ContentHandler</code> is the superclass 
 of all classes that read an <code>Object</code> from a 
 <code>URLConnection</code>. 
 <p>
 An application does not generally call the 
 <code>getContent</code> method in this class directly. Instead, an 
 application calls the <code>getContent</code> method in class 
 <code>URL</code> or in <code>URLConnection</code>.
 The application's content handler factory (an instance of a class that 
 implements the interface <code>ContentHandlerFactory</code> set 
 up by a call to <code>setContentHandler</code>) is 
 called with a <code>String</code> giving the MIME type of the 
 object being received on the socket. The factory returns an 
 instance of a subclass of <code>ContentHandler</code>, and its 
 <code>getContent</code> method is called to create the object.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="#getContent(java.net.URLConnection)">getContent</a>, <a href="java.net.ContentHandlerFactory.html#_top_">ContentHandlerFactory</a>, <a href="java.net.URL.html#getContent()">getContent</a>, <a href="java.net.URLConnection.html#_top_">URLConnection</a>, <a href="java.net.URLConnection.html#getContent()">getContent</a>, <a href="java.net.URLConnection.html#setContentHandlerFactory(java.net.ContentHandlerFactory)">setContentHandlerFactory</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ContentHandler()"><b>ContentHandler</b></a>()
  <dd> 
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getContent(java.net.URLConnection)"><b>getContent</b></a>(URLConnection)
  <dd> 
 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.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="ContentHandler"></a>
<a name="ContentHandler()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>ContentHandler</b>
<pre>
 public ContentHandler()
</pre>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="getContent(java.net.URLConnection)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getContent"><b>getContent</b></a>
<pre>
 public abstract <a href="java.lang.Object.html#_top_">Object</a> getContent(<a href="java.net.URLConnection.html#_top_">URLConnection</a> urlc) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> 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.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> urlc - a URL connection.
    <dt> <b>Returns:</b>
    <dd> the object read by the <code>ContentHandler</code>.
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> if an I/O error occurs while reading the object.
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.net.html">This Package</a>  <a href="Package-java.net.html">Previous</a>  <a href="java.net.DatagramPacket.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
