ContentHandlerFactoryNameContentHandlerFactorySynopsis
DescriptionThe ContentHandlerFactory interface defines a method that creates and returns an appropriate ContentHandler object for a given MIME type. The interface is implemented by classes that select ContentHandler subclasses to process content. The URLStreamHandler class uses a ContentHandlerFactory to create ContentHandler objects. The content type is usually implied by the portion of the URL following the last period. For example, given the following URL:
http://www.tolstoi.org/anna.html the MIME content type is text/html. A ContentHandlerFactory that recognizes text/html returns a ContentHandler object that can process that kind of content. Interface Declaration
public abstract interface java.net.ContentHandlerFactory { // Methods public abstract ContentHandler createContentHandler(String mimetype); } MethodscreateContentHandler
public abstract ContentHandler createContentHandler( String mimetype)
See AlsoContentHandler, URLStreamHandler |
|