Class net.www.html.ContentHandler
All Packages This Package Previous Next
Class net.www.html.ContentHandler
java.lang.Object
|
+----net.www.html.ContentHandler
-
public class
ContentHandler
-
extends Object
Defines the API for reading content of arbitrary types. Any new MIME type
has to define a new subclass of ContentHandler to decode and cope with
objects of that type
-
ContentHandler()
-
-
getContent(InputStream, URL)
-
Given an input stream positioned at the beginning of the
representation of an object, read that stream and recreate
the object from it
-
getItem(InputStream, URL)
-
Given an input stream positioned at the beginning of the
representation of an object, read that stream and create
a DisplayItem that contains the object.
ContentHandler
public ContentHandler()
getContent
public Object getContent(InputStream is,
URL u)
-
Given an input stream positioned at the beginning of the
representation of an object, read that stream and recreate
the object from it
getItem
public DisplayItem getItem(InputStream is,
URL u)
-
Given an input stream positioned at the beginning of the
representation of an object, read that stream and create
a DisplayItem that contains the object. Returns null
if this is a type that can't be put in a DisplayObject.
getContent can still be called after getItem
All Packages This Package Previous Next