pt.tumba.parser.txt
Class TXT2HTML

java.lang.Object
  extended by pt.tumba.parser.txt.TXT2HTML
All Implemented Interfaces:
DocFilter

public class TXT2HTML
extends java.lang.Object
implements DocFilter

Converts a txt document into HTML

Author:
dcgomes

Field Summary
private  int sizeCount
           
 
Constructor Summary
TXT2HTML()
          Creates a new instance of TXT2HTML
 
Method Summary
 java.lang.String convertTXTToHTML(byte[] array)
          Description of the Method
 java.lang.String convertTXTToHTML(java.io.File input)
          Description of the Method
 java.lang.String convertTXTToHTML(java.io.InputStream in)
          Description of the Method
 java.lang.String convertTXTToHTML(java.net.URL input)
          Description of the Method
 int originalSize()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sizeCount

private int sizeCount
Constructor Detail

TXT2HTML

public TXT2HTML()
Creates a new instance of TXT2HTML

Method Detail

originalSize

public int originalSize()
Description of the Method

Specified by:
originalSize in interface DocFilter
Returns:
Description of the Return Value

convertTXTToHTML

public java.lang.String convertTXTToHTML(byte[] array)
Description of the Method

Parameters:
array - Description of the Parameter
Returns:
Description of the Return Value

convertTXTToHTML

public java.lang.String convertTXTToHTML(java.io.InputStream in)
                                  throws java.io.IOException
Description of the Method

Parameters:
in - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

convertTXTToHTML

public java.lang.String convertTXTToHTML(java.io.File input)
                                  throws java.io.IOException,
                                         java.io.FileNotFoundException
Description of the Method

Parameters:
input - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception
java.io.FileNotFoundException - Description of the Exception

convertTXTToHTML

public java.lang.String convertTXTToHTML(java.net.URL input)
                                  throws java.net.MalformedURLException,
                                         java.io.IOException
Description of the Method

Parameters:
input - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.net.MalformedURLException - Description of the Exception
java.io.IOException - Description of the Exception