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

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 ContentHandlerFactory 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()

Constructor Index

 o ContentHandler()

Method Index

 o getContent(URLConnection)
Given an input stream positioned at the beginning of the representation of an object, reads that stream and recreates 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, reads that stream and recreates the object from it.
Throws: IOException
An IO error occurred while reading the object.

All Packages  Class Hierarchy  This Package  Previous  Next  Index