All About INTERFACE ContentHandlerFactory in Java



ContentHandlerFactory interface defines a factory for content handlers.This interface is used by the URLSTREAMHandler class to create a content handler for a MIME type.An implementation of this interface should map a mime type into an instance of content handler.

The structure of the interface ContentHandlerFactory is given as:

public interface java.net.ContentHandlerFactory{
//methods
public abstract ContentHandler createContentHandler(String mmeType);
//creates a new ContentHandlerFactory instance ti read an object from a URLStreamHandler.

}
 
All About INTERFACE ContentHandlerFactory in Java All About INTERFACE ContentHandlerFactory in Java Reviewed by Animesh Chatterjee on October 12, 2018 Rating: 5

No comments:

Powered by Blogger.