extensions.gem
Class GetFileBean

java.lang.Object
  |
  +--extensions.gem.GetFileBean

public class GetFileBean
extends java.lang.Object

Program Name: GetFileBean.java Comments: Provides convenience methods for displaying an ASCII text file. Assumes that the file is under the /WEB-INF directory of the calling context.


Constructor Summary
GetFileBean()
           
 
Method Summary
 java.lang.String fileToString(java.lang.String fileName)
           
 java.lang.String getRootDir()
           
 java.lang.String removeCharacters(java.lang.String scriptString, java.lang.String filter)
          This method removes all control characters (like ^M) from the string in the argument.
 void setRootDir(java.lang.String rootDir)
           
 void stringToFile(java.lang.String scriptString, java.lang.String fileName)
          This method probably needs to be checked for compatibility between DOS and Unix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetFileBean

public GetFileBean()
Method Detail

fileToString

public java.lang.String fileToString(java.lang.String fileName)

removeCharacters

public java.lang.String removeCharacters(java.lang.String scriptString,
                                         java.lang.String filter)
This method removes all control characters (like ^M) from the string in the argument. It returns the cleaned up string. These can arise when going from DOS to Unix, and also apparently get included in multiple lines in an HTML