org.jfor.jfor.converter
Class ConverterOption

java.lang.Object
  extended byorg.jfor.jfor.converter.ConverterOption
All Implemented Interfaces:
IConverterOption, IRtfOptions

class ConverterOption
extends java.lang.Object
implements IConverterOption

Options for Converter

Author:
Andreas Putz a.putz@skynamics.com

Constructor Summary
ConverterOption()
          Constructor.
ConverterOption(java.io.OutputStream out)
          Constructor.
ConverterOption(java.io.OutputStream debug, java.io.OutputStream info, java.io.OutputStream warning, java.io.OutputStream error)
          Constructor.
ConverterOption(java.io.Writer debugW, java.io.Writer infoW, java.io.Writer warningW, java.io.Writer errorW)
          Constructor.
 
Method Summary
 ConverterLogChannel getLog()
          Gets the log channel.
 int getRtfExternalGraphicCompressionRate()
          Gets the compression rate for the image in percent.
 org.xml.sax.XMLReader getXmlReader()
          Gets the standard XML reader.
 void setRtfExternalGraphicCompressionRate(int percent)
          Sets the compression rate for the image in percent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterOption

public ConverterOption()
Constructor.


ConverterOption

public ConverterOption(java.io.OutputStream debug,
                       java.io.OutputStream info,
                       java.io.OutputStream warning,
                       java.io.OutputStream error)
Constructor.

Parameters:
debug - Stream for debug output
info - Stream for info output
warning - Stream for warning output
error - Stream for error output

ConverterOption

public ConverterOption(java.io.Writer debugW,
                       java.io.Writer infoW,
                       java.io.Writer warningW,
                       java.io.Writer errorW)
Constructor.

Parameters:
debugW - Writer for debug output
infoW - Writer for info output
warningW - Writer for warning output
errorW - Writer for error output

ConverterOption

public ConverterOption(java.io.OutputStream out)
Constructor.

Parameters:
out - Stream for all output
Method Detail

setRtfExternalGraphicCompressionRate

public void setRtfExternalGraphicCompressionRate(int percent)
Sets the compression rate for the image in percent.

Specified by:
setRtfExternalGraphicCompressionRate in interface IRtfOptions
Parameters:
percent - Compression rate

getRtfExternalGraphicCompressionRate

public int getRtfExternalGraphicCompressionRate()
Gets the compression rate for the image in percent.

Specified by:
getRtfExternalGraphicCompressionRate in interface IRtfOptions
Returns:
Compression rate

getLog

public ConverterLogChannel getLog()
Gets the log channel. If m_log not set, the standard output stream writer will set.

Specified by:
getLog in interface IConverterOption
Returns:
Log channel

getXmlReader

public org.xml.sax.XMLReader getXmlReader()
                                   throws java.lang.Exception
Gets the standard XML reader. 'Xerces.jar' is needed. Can be overridden to use a different parser.

Specified by:
getXmlReader in interface IConverterOption
Throws:
java.lang.Exception