public abstract class ContentHandler extends Object
ContentHandlerFactory. The data
values should be accessed via URL or URLConnection.| Constructor and Description |
|---|
ContentHandler() |
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
getContent(URLConnection uConn)
Returns the object pointed by the specified URL connection
uConn. |
Object |
getContent(URLConnection uConn,
Class[] types)
Returns the object pointed by the specified URL connection
uConn. |
public abstract Object getContent(URLConnection uConn) throws IOException
uConn.uConn - URL connection that points to the desired object.uConn.IOException - if an IO error occurs during the retrieval of the objectpublic Object getContent(URLConnection uConn, Class[] types) throws IOException
uConn.uConn - URL connection that points to the desired object.types - list of acceptable content types.null if the
content doesn't match one of the specified content types.IOException - if an error occurred while obtaining the content.