org.apache.fop.render.txt
Class TXTStream
java.lang.Object
org.apache.fop.render.txt.TXTStream
public class TXTStream
extends java.lang.Object
Helper class for text streams.
void | add(String str) - Adds a String to the OutputStream
|
void | setDoOutput(boolean doout) - Controls whether output is actually written.
|
void | setEncoding(String encoding) - Set the encoding for the text stream.
|
TXTStream
public TXTStream(OutputStream os)
Main constructor.
os
- OutputStream to write to
add
public void add(String str)
Adds a String to the OutputStream
setDoOutput
public void setDoOutput(boolean doout)
Controls whether output is actually written.
doout
- true to enable output, false to suppress
setEncoding
public void setEncoding(String encoding)
Set the encoding for the text stream.
encoding
- the encoding, if null, "UTF-8" is chosen as default
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.