com.ibm.dse.tools.workbench.tbg
Class TbgWriter

java.lang.Object
  |
  +--com.ibm.dse.tools.workbench.tbg.TbgWriter

public class TbgWriter
extends java.lang.Object

This class implements a TBG Writer.

TbgWriter is used to write to the specified writer.


Constructor Summary
TbgWriter(java.io.Writer aWriter)
          This constructor creates a TbgWriter object.
 
Method Summary
 void close()
          Closes the writer.
 void setError(java.lang.String error)
          Sets an error message in the writer.
 void setWarning(java.lang.String warning)
          Sets a warning message in the writer.
 void write(java.lang.String text)
          Writes the specified String to the specified output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TbgWriter

public TbgWriter(java.io.Writer aWriter)
This constructor creates a TbgWriter object.

Sets the writer.

Parameters:
aWriter - java.io.Writer
Method Detail

close

public void close()
           throws WBInputOutputException
Closes the writer.
Throws:
WBInputOutputException - Thrown when an IOException is catched.

setError

public void setError(java.lang.String error)
              throws WBInputOutputException
Sets an error message in the writer.
Parameters:
error - java.lang.String The text to display as an error.
Throws:
WBInputOutputException - Thrown when errors have ocurred while writing in the writer.

setWarning

public void setWarning(java.lang.String warning)
                throws WBInputOutputException
Sets a warning message in the writer.
Parameters:
warning - java.lang.String The text to display as a warning.
Throws:
WBInputOutputException - Thrown when errors have ocurred while writing in the writer.

write

public void write(java.lang.String text)
           throws WBInputOutputException
Writes the specified String to the specified output stream.
Parameters:
text - java.lang.String The String to write.
Throws:
WBInputOutputException - Thrown when errors have ocurred while writing in the writer.