加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090228154727/http://developer.android.com:80/reference/java/net/ContentHandler.html
public abstract class

ContentHandler

extends Object
java.lang.Object
   ↳ java.net.ContentHandler

Class Overview

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.
[Expand]
Inherited Methods
From class java.lang.Object

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