de.uni_paderborn.fujaba.basic
Class FileStringReader

java.lang.Object
  extended byde.uni_paderborn.fujaba.basic.FileStringReader
Direct Known Subclasses:
ClassDiagTemplateLoader

public abstract class FileStringReader
extends java.lang.Object

Class to go through a text file line by line. doCurrentLine need to be overwritten.

Version:
$Revision: 1.12 $
Author:
$Author: schneider $

Constructor Summary
FileStringReader()
           
 
Method Summary
protected abstract  void doCurrentLine(java.lang.String currentLine)
          This method is called for every line.
 boolean doFile(java.lang.String fileName)
          Opens the textfile and calls doCurrentLine for every line in it.
 boolean doFile(java.lang.String fileName, java.lang.ClassLoader classLoader)
          Opens the textfile and calls doCurrentLine for every line in it.
 java.lang.String getComment()
          Get the comment attribute of the FileStringReader object
 void setComment(java.lang.String s)
          Sets the comment attribute of the FileStringReader object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileStringReader

public FileStringReader()
Method Detail

doFile

public boolean doFile(java.lang.String fileName)
Opens the textfile and calls doCurrentLine for every line in it.

Parameters:
fileName - No description provided
Returns:
No description provided

doFile

public boolean doFile(java.lang.String fileName,
                      java.lang.ClassLoader classLoader)
Opens the textfile and calls doCurrentLine for every line in it.

Parameters:
fileName - No description provided
classLoader - No description provided
Returns:
No description provided

doCurrentLine

protected abstract void doCurrentLine(java.lang.String currentLine)
This method is called for every line. Needs to be overwritten.

Parameters:
currentLine - No description provided

setComment

public void setComment(java.lang.String s)
Sets the comment attribute of the FileStringReader object

Parameters:
s - The new comment value

getComment

public java.lang.String getComment()
Get the comment attribute of the FileStringReader object

Returns:
The comment value