org.apache.fop.render.txt

Class TXTStream


public class TXTStream
extends java.lang.Object

Helper class for text streams.

Constructor Summary

TXTStream(OutputStream os)
Main constructor.

Method Summary

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.

Constructor Details

TXTStream

public TXTStream(OutputStream os)
Main constructor.
Parameters:
os - OutputStream to write to

Method Details

add

public void add(String str)
Adds a String to the OutputStream
Parameters:
str - String to add

setDoOutput

public void setDoOutput(boolean doout)
Controls whether output is actually written.
Parameters:
doout - true to enable output, false to suppress

setEncoding

public void setEncoding(String encoding)
Set the encoding for the text stream.
Parameters:
encoding - the encoding, if null, "UTF-8" is chosen as default

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.