Lizzy v1.1.1

christophedelory.content.type
Interface ContentTypeProvider

All Known Implementing Classes:
FileNameMapProvider, FileTypeMapProvider, SpecificPlaylistTypeProvider, WebAppProvider

public interface ContentTypeProvider

Provides if possible a content type for a given media content. Concrete classes must have a zero-argument constructor so that they can be instantiated during loading.

Version:
$Revision: 55 $
Author:
Christophe Delory

Method Summary
 ContentType getContentType(String contentName)
          Returns a content type representing the given content name (file or URL).
 

Method Detail

getContentType

ContentType getContentType(String contentName)
Returns a content type representing the given content name (file or URL).

Parameters:
contentName - a content (file or URL) name. Shall not be null.
Returns:
a content type. May be null if none was found.
Throws:
NullPointerException - if contentName is null.

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.