org.foray.render.txt
Class TXTStream

java.lang.Object
  extended by org.foray.render.txt.TXTStream

public class TXTStream
extends Object

OutputStream wrapper used by TXTRenderer.


Constructor Summary
TXTStream(OutputStream os)
          Constructor.
 
Method Summary
 void add(String str)
          Write some text to this stream.
 void setDoOutput(boolean doout)
          Set the flag that indicates whether text should be written.
 void setEncoding(Charset encoding)
          Set the encoding to be used by this stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TXTStream

public TXTStream(OutputStream os)
Constructor.

Parameters:
os - The OutputStream wrapped by this instance.
Method Detail

add

public void add(String str)
Write some text to this stream.

Parameters:
str - The text to be written.

setDoOutput

public void setDoOutput(boolean doout)
Set the flag that indicates whether text should be written.

Parameters:
doout - Set to true iff text should be written.

setEncoding

public void setEncoding(Charset encoding)
Set the encoding to be used by this stream.

Parameters:
encoding - The new encoding.


Copyright © 2017. All rights reserved.