de.uni_paderborn.fujaba.basic
Class FileStringReader

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

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 $

Field Summary
private  java.lang.String comment
          No comment provided by developer, please add a comment to improve documentation.
private static org.apache.log4j.Logger log
          log4j logging
 
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
 

Field Detail

log

private static final transient org.apache.log4j.Logger log
log4j logging


comment

private java.lang.String comment
No comment provided by developer, please add a comment to improve documentation.

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