com.ricebridge.data
Class TextWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.StringWriter
          extended bycom.ricebridge.data.TextWriter

public class TextWriter
extends StringWriter

Converts the contents of a StringWriter into a Text object.


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
TextWriter()
          Create an empty text value.
TextWriter(Text pText)
          Use an existing text value.
 
Method Summary
 void close()
          Close the parent StringWriter and set the text to the closing string value.
 Text getText()
          Set the text value using the current contents of the parent StringWriter.
 
Methods inherited from class java.io.StringWriter
flush, getBuffer, toString, write, write, write, write
 
Methods inherited from class java.io.Writer
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextWriter

public TextWriter()
Create an empty text value.


TextWriter

public TextWriter(Text pText)
Use an existing text value.

Parameters:
pText - text value
Method Detail

getText

public Text getText()
Set the text value using the current contents of the parent StringWriter.


close

public void close()
           throws IOException
Close the parent StringWriter and set the text to the closing string value.

Throws:
IOException


Copyright © 2003-2006 Ricebridge