net.sf.jeters.components
Class FileIO

java.lang.Object
  extended by net.sf.jeters.util.AssistedTranslatable
      extended by net.sf.jeters.components.FileIO
All Implemented Interfaces:
Component, InputComponent<net.sf.jeters.componentInterface.editables.EditableText>, OutputComponent<net.sf.jeters.componentInterface.editables.EditableText>, Translatable

public class FileIO
extends AssistedTranslatable
implements InputComponent<net.sf.jeters.componentInterface.editables.EditableText>, OutputComponent<net.sf.jeters.componentInterface.editables.EditableText>

default implementation of a combined input and output component reading from and writing to text files in the local file system.

Author:
Tobias Knerr

Constructor Summary
FileIO()
           
 
Method Summary
 net.sf.jeters.componentInterface.editables.EditableText getInput(UIComponent uiForRequests)
          receive a text that can be edited by the program
 void output(net.sf.jeters.componentInterface.editables.EditableText text, UIComponent uiForRequests)
          receive a text that can be edited by the program
 
Methods inherited from class net.sf.jeters.util.AssistedTranslatable
setLanguageResourceBundle, str, str
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileIO

public FileIO()
Method Detail

getInput

public net.sf.jeters.componentInterface.editables.EditableText getInput(UIComponent uiForRequests)
Description copied from interface: InputComponent
receive a text that can be edited by the program

Specified by:
getInput in interface InputComponent<net.sf.jeters.componentInterface.editables.EditableText>
Parameters:
uiForRequests - UI-component for communication with the user (if necessary)
Returns:
the text for editing, is allowed to be null in cases where loading fails for some reason

output

public void output(net.sf.jeters.componentInterface.editables.EditableText text,
                   UIComponent uiForRequests)
Description copied from interface: OutputComponent
receive a text that can be edited by the program

Specified by:
output in interface OutputComponent<net.sf.jeters.componentInterface.editables.EditableText>
Parameters:
text - the text that has been edited and should now be printed/written/etc. as the result
uiForRequests - UI-component for communication with the user (if necessary)