public abstract class Viewer
Viewers are used to transform some input files into String representations. Usually they extract the contents from these files using appropriate tools (eg. for HTML something like "links" or "lynx"
and so on)
The InputStream to read the contents of the file from.
protected Viewer(java.lang.Object o)
Constructor to be called from the extensions of this class, it looks at the input object and builds the actual input stream from it. If it is a String then it will build a FileInputStream based
on the file indicated by this parameter. If it is an InputStream than it will just use it. Otherwise the isSource will remain null.
o - input method
public abstract java.lang.String getString()
This is to be implemented by every viewer.
the contents of the original file
protected final java.lang.String getProgramOutput(java.lang.String sProgram)
Executes the given program and passes the contents of the InputStream to the programs's standard in and returns the text that the program produces at its standard output.