public class

gif

extends ContentHandler
java.lang.Object
   ↳ java.net.ContentHandler
     ↳ sun.net.www.content.image.gif

Summary

Public Constructors
gif()
Public Methods
Object getContent(URLConnection urlc, Class[] classes)
Given a URL connect stream positioned at the beginning of the representation of an object, this method reads that stream and creates an object that matches one of the types specified.
Object getContent(URLConnection urlc)
Given a URL connect stream positioned at the beginning of the representation of an object, this method reads that stream and creates an object from it.
[Expand]
Inherited Methods
From class java.net.ContentHandler
From class java.lang.Object

Public Constructors

public gif ()

Public Methods

public Object getContent (URLConnection urlc, Class[] classes)

Given a URL connect stream positioned at the beginning of the representation of an object, this method reads that stream and creates an object that matches one of the types specified. The default implementation of this method should call getContent() and screen the return type for a match of the suggested types.

Parameters
urlc a URL connection.
classes an array of types requested
Returns
  • the object read by the ContentHandler that is the first match of the suggested types. null if none of the requested are supported.
Throws
IOException

public Object getContent (URLConnection urlc)

Given a URL connect stream positioned at the beginning of the representation of an object, this method reads that stream and creates an object from it.

Parameters
urlc a URL connection.
Returns
  • the object read by the ContentHandler.
Throws
IOException