Interface and Class Details

Interface ContentHandlerFactory

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. ...

Get PURE Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.