Rakesh API

org.rakeshv.utils
Class Change8Crmp10

java.lang.Object
  extended by org.rakeshv.utils.Change8Crmp10

public class Change8Crmp10
extends java.lang.Object

This utility class changes all the text that are enclosed within / characters with \textit{<text>}. An attempt is also made to convert all accentuated characters with their LATEX equivalents.


Field Summary
private  java.lang.String contents
          The String object that is used to store the contents of the file being modified.
 
Constructor Summary
private Change8Crmp10()
          Default constructor.
  Change8Crmp10(java.lang.String fileName)
          Open the specified file, and read its contents into a String object.
 
Method Summary
private  java.lang.String accentuateCharacters()
          Convert all accentuated characters to their LATEX equivalent.
private  java.lang.String emphasiseText()
          Convert all words or phrases that are wrapped in / to \textit{<word or phrase>}
private  java.lang.String getContents(java.lang.String fileName)
          Read the contents of the specified file, and pass it back as a String.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contents

private java.lang.String contents
The String object that is used to store the contents of the file being modified.

Constructor Detail

Change8Crmp10

private Change8Crmp10()
Default constructor. Cannot be invoked.


Change8Crmp10

public Change8Crmp10(java.lang.String fileName)
Open the specified file, and read its contents into a String object. Apply the different Regular Expressions to the String, and also apply the accentuated character to LATEX conversions.

Parameters:
fileName - - The file to open. The path to the file should be explicitly specified if the file is not in the current working directory.
Method Detail

getContents

private java.lang.String getContents(java.lang.String fileName)
Read the contents of the specified file, and pass it back as a String.

Parameters:
fileName - - The file to open and read.
Returns:
String - The entire contents of the file.

emphasiseText

private java.lang.String emphasiseText()
Convert all words or phrases that are wrapped in / to \textit{<word or phrase>}

Returns:
String - The modified contents of the file.

accentuateCharacters

private java.lang.String accentuateCharacters()
Convert all accentuated characters to their LATEX equivalent.

Returns:
String - The modified contents of the file.

main

public static void main(java.lang.String[] args)

Rakesh API

Copyright © 2002-2005 - Rakesh Vidyadharan