Class ReadmeReader
java.lang.Object
org.ctan.site.services.texarchive.readme.ReadmeReader
- Direct Known Subclasses:
HtmlReadmeReader
,MarkdownReadmeReader
,TextReadmeReader
The class
ReadmeReader
contains the function to read a file and
return the contents as HTML.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ReadmeReader
public ReadmeReader()
-
-
Method Details
-
findIndex
The methodfindIndex
provides means to retrieve a readme file according to a search list.- Parameters:
dir
- the directory- Returns:
- the transport object for the index
-
read
Read the contents.- Parameters:
file
- the file to read- Returns:
- the file contents as HTML
- Throws:
UnsupportedEncodingException
- in case of an errorIOException
- in case of an I/O error
-