Class java.net.ContentHandler
All Packages    This Package    Previous    Next

Class java.net.ContentHandler

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

public class ContentHandler
extends Object
A class to read data from a URLConnection and construct an Object. Specific subclasses of ContentHandler handle specific mime types. It is the responsibility of a ContentHandlerFactor to select an appropriate ContentHandler for the mime-type of the URLConnection. Applications should never call ContentHandlers directly, rather they should use URL.getContent() or URLConnection.getContent()
Author:
James Gosling

Constructor Index

 o ContentHandler()

Method Index

 o getContent(URLConnection)
Given an input stream positioned at the beginning of the representation of an object, read that stream and recreate the object from it

Constructors

 o ContentHandler
  public ContentHandler()

Methods

 o getContent
  public abstract Object getContent(URLConnection urlc) throws IOException
Given an input stream positioned at the beginning of the representation of an object, read that stream and recreate the object from it


All Packages    This Package    Previous    Next