APTCONVERT 1.1

fr.pixware.apt.convert.rtf
Class RTFSink

java.lang.Object
  extended by fr.pixware.apt.parse.SinkAdapter
      extended by fr.pixware.apt.convert.rtf.RTFSink
All Implemented Interfaces:
Sink

public class RTFSink
extends SinkAdapter


Field Summary
static double DEFAULT_BOTTOM_MARGIN
           
static int DEFAULT_CHAR_SET
           
static int DEFAULT_CODE_PAGE
           
static java.lang.String DEFAULT_DATA_FORMAT
           
static int DEFAULT_FONT_SIZE
           
static java.lang.String DEFAULT_IMAGE_FORMAT
           
static java.lang.String DEFAULT_IMAGE_TYPE
           
static double DEFAULT_LEFT_MARGIN
           
static double DEFAULT_PAPER_HEIGHT
           
static double DEFAULT_PAPER_WIDTH
           
static int DEFAULT_RESOLUTION
           
static double DEFAULT_RIGHT_MARGIN
           
static int DEFAULT_SPACING
           
static double DEFAULT_TOP_MARGIN
           
static java.lang.String IMG_DATA_ASCII
           
static java.lang.String IMG_DATA_RAW
           
static java.lang.String IMG_FORMAT_BMP
           
static java.lang.String IMG_FORMAT_WMF
           
static java.lang.String IMG_TYPE_PALETTE
           
static java.lang.String IMG_TYPE_RGB
           
protected  java.io.OutputStream stream
           
static int STYLE_BOLD
           
static int STYLE_ITALIC
           
static int STYLE_ROMAN
           
static int STYLE_TYPEWRITER
           
protected  java.io.PrintWriter writer
           
 
Fields inherited from interface fr.pixware.apt.parse.Sink
NUMBERING_DECIMAL, NUMBERING_LOWER_ALPHA, NUMBERING_LOWER_ROMAN, NUMBERING_UPPER_ALPHA, NUMBERING_UPPER_ROMAN
 
Constructor Summary
RTFSink()
           
RTFSink(java.io.OutputStream output)
           
RTFSink(java.io.OutputStream output, java.lang.String encoding)
           
 
Method Summary
 void anchor_()
           
 void anchor(java.lang.String name)
           
 void author_()
           
 void author()
           
 void body_()
           
 void body()
           
 void bold_()
           
 void bold()
           
 void date_()
           
 void date()
           
 void definedTerm_()
           
 void definedTerm()
           
 void definition_()
           
 void definition()
           
 void definitionList_()
           
 void definitionList()
           
 void definitionListItem_()
           
 void definitionListItem()
           
 void figure_()
           
 void figure()
           
 void figureCaption_()
           
 void figureCaption()
           
 void figureGraphics(java.lang.String name)
           
 void head_()
           
 void head()
           
 void horizontalRule()
           
 void italic_()
           
 void italic()
           
 void lineBreak()
           
 void link_()
           
 void link(java.lang.String name)
           
 void list_()
           
 void list()
           
 void listItem_()
           
 void listItem()
           
static void main(java.lang.String[] args)
           
 void monospaced_()
           
 void monospaced()
           
 void nonBreakingSpace()
           
 void numberedList_()
           
 void numberedList(int numbering)
           
 void numberedListItem_()
           
 void numberedListItem()
           
 void pageBreak()
           
 void paragraph_()
           
 void paragraph()
           
 void section1_()
           
 void section1()
           
 void section2_()
           
 void section2()
           
 void section3_()
           
 void section3()
           
 void section4_()
           
 void section4()
           
 void section5_()
           
 void section5()
           
 void sectionTitle_()
           
 void sectionTitle()
           
 void setBottomMargin(double margin)
           
 void setCharSet(int cs)
           
 void setCodePage(int cp)
           
 void setFontSize(int size)
           
 void setImageCompression(boolean compression)
           
 void setImageDataFormat(java.lang.String format)
           
 void setImageFormat(java.lang.String format)
           
 void setImageType(java.lang.String type)
           
 void setLeftMargin(double margin)
           
 void setPaperSize(double width, double height)
           
 void setResolution(int resolution)
           
 void setRightMargin(double margin)
           
 void setSpacing(int spacing)
           
 void setTopMargin(double margin)
           
 void table_()
           
 void table()
           
 void tableCaption_()
           
 void tableCaption()
           
 void tableCell_()
           
 void tableCell()
           
 void tableRow_()
           
 void tableRow()
           
 void tableRows_()
           
 void tableRows(int[] justification, boolean grid)
           
 void text(java.lang.String text)
           
 void title_()
           
 void title()
           
 void verbatim_()
           
 void verbatim(boolean boxed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PAPER_WIDTH

public static final double DEFAULT_PAPER_WIDTH
See Also:
Constant Field Values

DEFAULT_PAPER_HEIGHT

public static final double DEFAULT_PAPER_HEIGHT
See Also:
Constant Field Values

DEFAULT_TOP_MARGIN

public static final double DEFAULT_TOP_MARGIN
See Also:
Constant Field Values

DEFAULT_BOTTOM_MARGIN

public static final double DEFAULT_BOTTOM_MARGIN
See Also:
Constant Field Values

DEFAULT_LEFT_MARGIN

public static final double DEFAULT_LEFT_MARGIN
See Also:
Constant Field Values

DEFAULT_RIGHT_MARGIN

public static final double DEFAULT_RIGHT_MARGIN
See Also:
Constant Field Values

DEFAULT_FONT_SIZE

public static final int DEFAULT_FONT_SIZE
See Also:
Constant Field Values

DEFAULT_SPACING

public static final int DEFAULT_SPACING
See Also:
Constant Field Values

DEFAULT_RESOLUTION

public static final int DEFAULT_RESOLUTION
See Also:
Constant Field Values

DEFAULT_IMAGE_FORMAT

public static final java.lang.String DEFAULT_IMAGE_FORMAT
See Also:
Constant Field Values

DEFAULT_IMAGE_TYPE

public static final java.lang.String DEFAULT_IMAGE_TYPE
See Also:
Constant Field Values

DEFAULT_DATA_FORMAT

public static final java.lang.String DEFAULT_DATA_FORMAT
See Also:
Constant Field Values

DEFAULT_CODE_PAGE

public static final int DEFAULT_CODE_PAGE
See Also:
Constant Field Values

DEFAULT_CHAR_SET

public static final int DEFAULT_CHAR_SET
See Also:
Constant Field Values

IMG_FORMAT_BMP

public static final java.lang.String IMG_FORMAT_BMP
See Also:
Constant Field Values

IMG_FORMAT_WMF

public static final java.lang.String IMG_FORMAT_WMF
See Also:
Constant Field Values

IMG_TYPE_PALETTE

public static final java.lang.String IMG_TYPE_PALETTE
See Also:
Constant Field Values

IMG_TYPE_RGB

public static final java.lang.String IMG_TYPE_RGB
See Also:
Constant Field Values

IMG_DATA_ASCII

public static final java.lang.String IMG_DATA_ASCII
See Also:
Constant Field Values

IMG_DATA_RAW

public static final java.lang.String IMG_DATA_RAW
See Also:
Constant Field Values

STYLE_ROMAN

public static final int STYLE_ROMAN
See Also:
Constant Field Values

STYLE_ITALIC

public static final int STYLE_ITALIC
See Also:
Constant Field Values

STYLE_BOLD

public static final int STYLE_BOLD
See Also:
Constant Field Values

STYLE_TYPEWRITER

public static final int STYLE_TYPEWRITER
See Also:
Constant Field Values

writer

protected java.io.PrintWriter writer

stream

protected java.io.OutputStream stream
Constructor Detail

RTFSink

public RTFSink()
        throws java.io.IOException
Throws:
java.io.IOException

RTFSink

public RTFSink(java.io.OutputStream output)
        throws java.io.IOException
Throws:
java.io.IOException

RTFSink

public RTFSink(java.io.OutputStream output,
               java.lang.String encoding)
        throws java.io.IOException
Throws:
java.io.IOException
Method Detail

setPaperSize

public void setPaperSize(double width,
                         double height)

setTopMargin

public void setTopMargin(double margin)

setBottomMargin

public void setBottomMargin(double margin)

setLeftMargin

public void setLeftMargin(double margin)

setRightMargin

public void setRightMargin(double margin)

setFontSize

public void setFontSize(int size)

setSpacing

public void setSpacing(int spacing)

setResolution

public void setResolution(int resolution)

setImageFormat

public void setImageFormat(java.lang.String format)

setImageType

public void setImageType(java.lang.String type)

setImageDataFormat

public void setImageDataFormat(java.lang.String format)

setImageCompression

public void setImageCompression(boolean compression)

setCodePage

public void setCodePage(int cp)

setCharSet

public void setCharSet(int cs)

head

public void head()
          throws ParseException
Specified by:
head in interface Sink
Overrides:
head in class SinkAdapter
Throws:
ParseException

head_

public void head_()
           throws ParseException
Specified by:
head_ in interface Sink
Overrides:
head_ in class SinkAdapter
Throws:
ParseException

title

public void title()
           throws ParseException
Specified by:
title in interface Sink
Overrides:
title in class SinkAdapter
Throws:
ParseException

title_

public void title_()
            throws ParseException
Specified by:
title_ in interface Sink
Overrides:
title_ in class SinkAdapter
Throws:
ParseException

author

public void author()
            throws ParseException
Specified by:
author in interface Sink
Overrides:
author in class SinkAdapter
Throws:
ParseException

author_

public void author_()
             throws ParseException
Specified by:
author_ in interface Sink
Overrides:
author_ in class SinkAdapter
Throws:
ParseException

date

public void date()
          throws ParseException
Specified by:
date in interface Sink
Overrides:
date in class SinkAdapter
Throws:
ParseException

date_

public void date_()
           throws ParseException
Specified by:
date_ in interface Sink
Overrides:
date_ in class SinkAdapter
Throws:
ParseException

body

public void body()
          throws ParseException
Specified by:
body in interface Sink
Overrides:
body in class SinkAdapter
Throws:
ParseException

body_

public void body_()
           throws ParseException
Specified by:
body_ in interface Sink
Overrides:
body_ in class SinkAdapter
Throws:
ParseException

section1

public void section1()
              throws ParseException
Specified by:
section1 in interface Sink
Overrides:
section1 in class SinkAdapter
Throws:
ParseException

section1_

public void section1_()
               throws ParseException
Specified by:
section1_ in interface Sink
Overrides:
section1_ in class SinkAdapter
Throws:
ParseException

section2

public void section2()
              throws ParseException
Specified by:
section2 in interface Sink
Overrides:
section2 in class SinkAdapter
Throws:
ParseException

section2_

public void section2_()
               throws ParseException
Specified by:
section2_ in interface Sink
Overrides:
section2_ in class SinkAdapter
Throws:
ParseException

section3

public void section3()
              throws ParseException
Specified by:
section3 in interface Sink
Overrides:
section3 in class SinkAdapter
Throws:
ParseException

section3_

public void section3_()
               throws ParseException
Specified by:
section3_ in interface Sink
Overrides:
section3_ in class SinkAdapter
Throws:
ParseException

section4

public void section4()
              throws ParseException
Specified by:
section4 in interface Sink
Overrides:
section4 in class SinkAdapter
Throws:
ParseException

section4_

public void section4_()
               throws ParseException
Specified by:
section4_ in interface Sink
Overrides:
section4_ in class SinkAdapter
Throws:
ParseException

section5

public void section5()
              throws ParseException
Specified by:
section5 in interface Sink
Overrides:
section5 in class SinkAdapter
Throws:
ParseException

section5_

public void section5_()
               throws ParseException
Specified by:
section5_ in interface Sink
Overrides:
section5_ in class SinkAdapter
Throws:
ParseException

sectionTitle

public void sectionTitle()
                  throws ParseException
Specified by:
sectionTitle in interface Sink
Overrides:
sectionTitle in class SinkAdapter
Throws:
ParseException

sectionTitle_

public void sectionTitle_()
                   throws ParseException
Specified by:
sectionTitle_ in interface Sink
Overrides:
sectionTitle_ in class SinkAdapter
Throws:
ParseException

list

public void list()
          throws ParseException
Specified by:
list in interface Sink
Overrides:
list in class SinkAdapter
Throws:
ParseException

list_

public void list_()
           throws ParseException
Specified by:
list_ in interface Sink
Overrides:
list_ in class SinkAdapter
Throws:
ParseException

listItem

public void listItem()
              throws ParseException
Specified by:
listItem in interface Sink
Overrides:
listItem in class SinkAdapter
Throws:
ParseException

listItem_

public void listItem_()
               throws ParseException
Specified by:
listItem_ in interface Sink
Overrides:
listItem_ in class SinkAdapter
Throws:
ParseException

numberedList

public void numberedList(int numbering)
                  throws ParseException
Specified by:
numberedList in interface Sink
Overrides:
numberedList in class SinkAdapter
Throws:
ParseException

numberedList_

public void numberedList_()
                   throws ParseException
Specified by:
numberedList_ in interface Sink
Overrides:
numberedList_ in class SinkAdapter
Throws:
ParseException

numberedListItem

public void numberedListItem()
                      throws ParseException
Specified by:
numberedListItem in interface Sink
Overrides:
numberedListItem in class SinkAdapter
Throws:
ParseException

numberedListItem_

public void numberedListItem_()
                       throws ParseException
Specified by:
numberedListItem_ in interface Sink
Overrides:
numberedListItem_ in class SinkAdapter
Throws:
ParseException

definitionList

public void definitionList()
                    throws ParseException
Specified by:
definitionList in interface Sink
Overrides:
definitionList in class SinkAdapter
Throws:
ParseException

definitionList_

public void definitionList_()
                     throws ParseException
Specified by:
definitionList_ in interface Sink
Overrides:
definitionList_ in class SinkAdapter
Throws:
ParseException

definitionListItem

public void definitionListItem()
                        throws ParseException
Specified by:
definitionListItem in interface Sink
Overrides:
definitionListItem in class SinkAdapter
Throws:
ParseException

definitionListItem_

public void definitionListItem_()
                         throws ParseException
Specified by:
definitionListItem_ in interface Sink
Overrides:
definitionListItem_ in class SinkAdapter
Throws:
ParseException

definedTerm

public void definedTerm()
                 throws ParseException
Specified by:
definedTerm in interface Sink
Overrides:
definedTerm in class SinkAdapter
Throws:
ParseException

definedTerm_

public void definedTerm_()
                  throws ParseException
Specified by:
definedTerm_ in interface Sink
Overrides:
definedTerm_ in class SinkAdapter
Throws:
ParseException

definition

public void definition()
                throws ParseException
Specified by:
definition in interface Sink
Overrides:
definition in class SinkAdapter
Throws:
ParseException

definition_

public void definition_()
                 throws ParseException
Specified by:
definition_ in interface Sink
Overrides:
definition_ in class SinkAdapter
Throws:
ParseException

table

public void table()
           throws ParseException
Specified by:
table in interface Sink
Overrides:
table in class SinkAdapter
Throws:
ParseException

table_

public void table_()
            throws ParseException
Specified by:
table_ in interface Sink
Overrides:
table_ in class SinkAdapter
Throws:
ParseException

tableRows

public void tableRows(int[] justification,
                      boolean grid)
               throws ParseException
Specified by:
tableRows in interface Sink
Overrides:
tableRows in class SinkAdapter
Throws:
ParseException

tableRows_

public void tableRows_()
                throws ParseException
Specified by:
tableRows_ in interface Sink
Overrides:
tableRows_ in class SinkAdapter
Throws:
ParseException

tableRow

public void tableRow()
              throws ParseException
Specified by:
tableRow in interface Sink
Overrides:
tableRow in class SinkAdapter
Throws:
ParseException

tableRow_

public void tableRow_()
               throws ParseException
Specified by:
tableRow_ in interface Sink
Overrides:
tableRow_ in class SinkAdapter
Throws:
ParseException

tableCell

public void tableCell()
               throws ParseException
Specified by:
tableCell in interface Sink
Overrides:
tableCell in class SinkAdapter
Throws:
ParseException

tableCell_

public void tableCell_()
                throws ParseException
Specified by:
tableCell_ in interface Sink
Overrides:
tableCell_ in class SinkAdapter
Throws:
ParseException

tableCaption

public void tableCaption()
                  throws ParseException
Specified by:
tableCaption in interface Sink
Overrides:
tableCaption in class SinkAdapter
Throws:
ParseException

tableCaption_

public void tableCaption_()
                   throws ParseException
Specified by:
tableCaption_ in interface Sink
Overrides:
tableCaption_ in class SinkAdapter
Throws:
ParseException

paragraph

public void paragraph()
               throws ParseException
Specified by:
paragraph in interface Sink
Overrides:
paragraph in class SinkAdapter
Throws:
ParseException

paragraph_

public void paragraph_()
                throws ParseException
Specified by:
paragraph_ in interface Sink
Overrides:
paragraph_ in class SinkAdapter
Throws:
ParseException

verbatim

public void verbatim(boolean boxed)
              throws ParseException
Specified by:
verbatim in interface Sink
Overrides:
verbatim in class SinkAdapter
Throws:
ParseException

verbatim_

public void verbatim_()
               throws ParseException
Specified by:
verbatim_ in interface Sink
Overrides:
verbatim_ in class SinkAdapter
Throws:
ParseException

figure

public void figure()
            throws ParseException
Specified by:
figure in interface Sink
Overrides:
figure in class SinkAdapter
Throws:
ParseException

figure_

public void figure_()
             throws ParseException
Specified by:
figure_ in interface Sink
Overrides:
figure_ in class SinkAdapter
Throws:
ParseException

figureGraphics

public void figureGraphics(java.lang.String name)
                    throws ParseException
Specified by:
figureGraphics in interface Sink
Overrides:
figureGraphics in class SinkAdapter
Throws:
ParseException

figureCaption

public void figureCaption()
                   throws ParseException
Specified by:
figureCaption in interface Sink
Overrides:
figureCaption in class SinkAdapter
Throws:
ParseException

figureCaption_

public void figureCaption_()
                    throws ParseException
Specified by:
figureCaption_ in interface Sink
Overrides:
figureCaption_ in class SinkAdapter
Throws:
ParseException

horizontalRule

public void horizontalRule()
                    throws ParseException
Specified by:
horizontalRule in interface Sink
Overrides:
horizontalRule in class SinkAdapter
Throws:
ParseException

pageBreak

public void pageBreak()
               throws ParseException
Specified by:
pageBreak in interface Sink
Overrides:
pageBreak in class SinkAdapter
Throws:
ParseException

anchor

public void anchor(java.lang.String name)
            throws ParseException
Specified by:
anchor in interface Sink
Overrides:
anchor in class SinkAdapter
Throws:
ParseException

anchor_

public void anchor_()
             throws ParseException
Specified by:
anchor_ in interface Sink
Overrides:
anchor_ in class SinkAdapter
Throws:
ParseException

link

public void link(java.lang.String name)
          throws ParseException
Specified by:
link in interface Sink
Overrides:
link in class SinkAdapter
Throws:
ParseException

link_

public void link_()
           throws ParseException
Specified by:
link_ in interface Sink
Overrides:
link_ in class SinkAdapter
Throws:
ParseException

italic

public void italic()
            throws ParseException
Specified by:
italic in interface Sink
Overrides:
italic in class SinkAdapter
Throws:
ParseException

italic_

public void italic_()
             throws ParseException
Specified by:
italic_ in interface Sink
Overrides:
italic_ in class SinkAdapter
Throws:
ParseException

bold

public void bold()
          throws ParseException
Specified by:
bold in interface Sink
Overrides:
bold in class SinkAdapter
Throws:
ParseException

bold_

public void bold_()
           throws ParseException
Specified by:
bold_ in interface Sink
Overrides:
bold_ in class SinkAdapter
Throws:
ParseException

monospaced

public void monospaced()
                throws ParseException
Specified by:
monospaced in interface Sink
Overrides:
monospaced in class SinkAdapter
Throws:
ParseException

monospaced_

public void monospaced_()
                 throws ParseException
Specified by:
monospaced_ in interface Sink
Overrides:
monospaced_ in class SinkAdapter
Throws:
ParseException

lineBreak

public void lineBreak()
               throws ParseException
Specified by:
lineBreak in interface Sink
Overrides:
lineBreak in class SinkAdapter
Throws:
ParseException

nonBreakingSpace

public void nonBreakingSpace()
                      throws ParseException
Specified by:
nonBreakingSpace in interface Sink
Overrides:
nonBreakingSpace in class SinkAdapter
Throws:
ParseException

text

public void text(java.lang.String text)
          throws ParseException
Specified by:
text in interface Sink
Overrides:
text in class SinkAdapter
Throws:
ParseException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

APTCONVERT 1.1