org.xnap.search
Interface MediaType

All Known Implementing Classes:
AnythingMediaType, DefaultMediaType

public interface MediaType

Defines the requirements for classes that provide media type. Classes implementing this interface should also implement Serializable to be saved in a search history.


Method Summary
 java.lang.String getName()
          Returns the name of the media type that is shown to the user.
 java.lang.String getRealm()
          Returns the realm.
 boolean matches(java.lang.String filename)
          Returns true if filename is of this media type.
 

Method Detail

getName

java.lang.String getName()
Returns the name of the media type that is shown to the user.


getRealm

java.lang.String getRealm()
Returns the realm. This can be "anything", "audio", "video"...


matches

boolean matches(java.lang.String filename)
Returns true if filename is of this media type.



Copyright © 2001-2005 XNap Team. All Rights Reserved.