Android
java.net
public abstract class

java.net.ContentHandler

java.lang.Object
java.net.ContentHandler

This class converts the content of a certain format into a Java type Object. It is implemented differently for each content type in each platform. It is created by ContentHandlerFactory

Summary

Public Constructors

            ContentHandler()

Public Methods

          Object  getContent(URLConnection uConn, Class[] types)
Returns the object pointed by the specified URL Connection uConn.
abstract          Object  getContent(URLConnection uConn)
Returns the object pointed by the specified URL Connection uConn.
Methods inherited from class java.lang.Object

Details

Public Constructors

public ContentHandler()

Public Methods

public Object getContent(URLConnection uConn, Class[] types)

Returns the object pointed by the specified URL Connection uConn.

Parameters

uConn java.net.URLConnection the URL connection that points to the desired object
types The list of acceptable content types

Returns

  • Object The object of the resource pointed by this URL, or null if the content does not match a specified content type.

Throws

IOException If an error occurred obtaining the content.

public abstract Object getContent(URLConnection uConn)

Returns the object pointed by the specified URL Connection uConn.

Parameters

uConn URLConnection the URL connection that points to the desired object

Returns

  • java.lang.Object the object referred by uConn

Throws

IOException thrown if an IO error occurs during the retrieval of the object
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48