December 1999
Intermediate to advanced
816 pages
20h 27m
English
public abstract interface
ContentHandlerFactory
This interface is used for a concrete factory (in design-pattern terminology) in creating content-handler objects for specific MIME types. It's used by the class URLStreamHandler to create ContentHandler instances for MIME types. Generally, application programs do not explicitly create ContentHandler objects directly.
Note
The ContentHandler is factory created by a concrete factory. You can have an abstract factory or a concrete factory. An abstract factory provides a factory method, like getSomeObject() in an abstract class. You don't ever instantiate the factory; you only use its factory method. URLStreamHandler is an abstract class. ...
Read now
Unlock full access