pt.tumba.parser.unrtf
Class RTF2HTML

java.lang.Object
  extended by pt.tumba.parser.unrtf.RTF2HTML
All Implemented Interfaces:
DocFilter

public class RTF2HTML
extends java.lang.Object
implements DocFilter

Presents rtfs as html * *@author Daniel Gomes *@created 27th April, 2004


Field Summary
private  java.util.Random rnd
           
private  int sizeCount
           
 
Constructor Summary
RTF2HTML()
           
 
Method Summary
 java.lang.String convertRTFToHTML(byte[] b2)
          Description of the Method * *@param b2 Description of the Parameter *@return Description of the Return Value *@exception Exception Description of the Exception
 java.lang.String convertRTFToHTML(java.io.File input)
          Description of the Method * *@param input Description of the Parameter *@return Description of the Return Value *@exception Exception Description of the Exception
 java.lang.String convertRTFToHTML(java.io.InputStream input)
          Description of the Method * *@param input Description of the Parameter *@return Description of the Return Value *@exception Exception Description of the Exception
 java.lang.String convertRTFToHTML(java.net.URL input)
          Description of the Method * *@param input Description of the Parameter *@return Description of the Return Value *@exception Exception Description of the Exception
static void main(java.lang.String[] args)
           
 int originalSize()
          Description of the Method * Requires unrtf: http://unrtf.50megs.com/ *@return Description of the Return Value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sizeCount

private int sizeCount

rnd

private java.util.Random rnd
Constructor Detail

RTF2HTML

public RTF2HTML()
         throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

originalSize

public int originalSize()
Description of the Method * Requires unrtf: http://unrtf.50megs.com/ *@return Description of the Return Value

Specified by:
originalSize in interface DocFilter
Returns:
The original size of the document, before the filtering process.

convertRTFToHTML

public java.lang.String convertRTFToHTML(byte[] b2)
                                  throws java.lang.Exception
Description of the Method * *@param b2 Description of the Parameter *@return Description of the Return Value *@exception Exception Description of the Exception

Throws:
java.lang.Exception

convertRTFToHTML

public java.lang.String convertRTFToHTML(java.io.InputStream input)
                                  throws java.lang.Exception
Description of the Method * *@param input Description of the Parameter *@return Description of the Return Value *@exception Exception Description of the Exception

Throws:
java.lang.Exception

convertRTFToHTML

public java.lang.String convertRTFToHTML(java.io.File input)
                                  throws java.lang.Exception
Description of the Method * *@param input Description of the Parameter *@return Description of the Return Value *@exception Exception Description of the Exception

Throws:
java.lang.Exception

convertRTFToHTML

public java.lang.String convertRTFToHTML(java.net.URL input)
                                  throws java.lang.Exception
Description of the Method * *@param input Description of the Parameter *@return Description of the Return Value *@exception Exception Description of the Exception

Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception