name.angoca.db2sa.cli.system
Class SystemOutputWriter

Package class diagram package SystemOutputWriter
java.lang.Object
  extended by name.angoca.db2sa.cli.system.SystemOutputWriter
All Implemented Interfaces:
OutputWriter

public final class SystemOutputWriter
extends Object
implements OutputWriter

Implementation of the screen printer using the System.out function. There are two ways to write in this printer, the first one that writes without a carriage return at the end (new line) and the other that appends it.
Control Version

Version:
1.0.0 2009-07-19
Author:
Andres Gomez Casanova (AngocA)

Constructor Summary
SystemOutputWriter()
          Default constructor.
 
Method Summary
 void writeLine(String string)
          Writes a set of strings with a carriage return at the end of it.
 void writeString(String string)
          Writes a set of strings without a carriage return.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemOutputWriter

public SystemOutputWriter()
Default constructor.

Method Detail

writeString

public void writeString(String string)
                 throws OutputWriterException
Description copied from interface: OutputWriter
Writes a set of strings without a carriage return.

Specified by:
writeString in interface OutputWriter
Parameters:
string - String to write in the screen.
Throws:
OutputWriterException - If there is a problem when writing.

writeLine

public void writeLine(String string)
               throws OutputWriterException
Description copied from interface: OutputWriter
Writes a set of strings with a carriage return at the end of it.

Specified by:
writeLine in interface OutputWriter
Parameters:
string - String to write.
Throws:
OutputWriterException - If there is a problem when writing.


Andres Gomez Casanova (AngocA) Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.