com.lowagie.text.rtf

Class GenericRtfField

public class GenericRtfField extends AbstractRtfField

Deprecated: Please move to the RtfWriter2 and associated classes.

This class implements a generic RtfField. This class is based on the RtfWriter-package from Mark Hall. ONLY FOR USE WITH THE RtfWriter NOT with the RtfWriter2.

Since: Mon Aug 19 14:50:39 2002

Version: $Id: GenericRtfField.java,v 1.20 2007/02/23 22:28:28 xlv Exp $

Author: Dirk Weigenand (Dirk.Weigenand@smb-tec.com)

Field Summary
protected StringfieldInst
Field Initialization Stuff.
protected StringfieldResult
Field Result Stuff.
Constructor Summary
GenericRtfField(String fieldInst, String fieldResult)
public constructor, set the data that is to be written into the Field Initialization Stuff and Field Result parts of the RtfField.
GenericRtfField(String fieldInst, String fieldResult, Font font)
public constructor, set the data that is to be written into the Field Initialization Stuff and Field Result parts of the RtfField.
Method Summary
voidwriteRtfFieldInitializationStuff(OutputStream out)
method for writing custom stuff to the Field Initialization Stuff part of an RtfField.
voidwriteRtfFieldResultStuff(OutputStream out)
method for writing custom stuff to the Field Result part of an RtfField.

Field Detail

fieldInst

protected String fieldInst
Field Initialization Stuff.

fieldResult

protected String fieldResult
Field Result Stuff.

Constructor Detail

GenericRtfField

public GenericRtfField(String fieldInst, String fieldResult)
public constructor, set the data that is to be written into the Field Initialization Stuff and Field Result parts of the RtfField.

Parameters: fieldInst data to be written into the Field Initialization Stuff part of the RtfField. fieldResult data to be written into the Field Result part of the RtfField.

GenericRtfField

public GenericRtfField(String fieldInst, String fieldResult, Font font)
public constructor, set the data that is to be written into the Field Initialization Stuff and Field Result parts of the RtfField.

Parameters: fieldInst data to be written into the Field Initialization Stuff part of the RtfField. fieldResult data to be written into the Field Result part of the RtfField. font

Method Detail

writeRtfFieldInitializationStuff

public void writeRtfFieldInitializationStuff(OutputStream out)
method for writing custom stuff to the Field Initialization Stuff part of an RtfField.

Parameters: out

Throws: IOException

writeRtfFieldResultStuff

public void writeRtfFieldResultStuff(OutputStream out)
method for writing custom stuff to the Field Result part of an RtfField.

Parameters: out

Throws: IOException