tml.storage.importers
Interface Importer

All Known Implementing Classes:
HtmlImporter, TextImporter

public interface Importer

Interface for all importers. It defines what kind of files it can manage, basically by extension, and implements a method to obtain the plain text version of the content.

Author:
Jorge Villalon

Method Summary
 java.lang.String getCleanContent(java.lang.String content)
           
 boolean isValidFileExtension(java.lang.String fileExtension)
           
 

Method Detail

getCleanContent

java.lang.String getCleanContent(java.lang.String content)
Parameters:
content - the text to clean
Returns:
the plain text version of the content

isValidFileExtension

boolean isValidFileExtension(java.lang.String fileExtension)
Parameters:
fileExtension -
Returns:
true if the importer can manage the extension