bdelacretaz    2002/11/05 00:51:44

  Modified:    src/org/apache/fop/rtf/renderer RTFHandler.java
  Log:
  RTFHandler constructor IOException removed
  
  Revision  Changes    Path
  1.2       +5 -3      xml-fop/src/org/apache/fop/rtf/renderer/RTFHandler.java
  
  Index: RTFHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/rtf/renderer/RTFHandler.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RTFHandler.java   1 Nov 2002 06:44:15 -0000       1.1
  +++ RTFHandler.java   5 Nov 2002 08:51:44 -0000       1.2
  @@ -38,6 +38,7 @@
    public class RTFHandler extends StructureHandler {
       private FontInfo _fontInfo = new FontInfo();
       private RtfFile _rtfFile;
  +    private final OutputStream _os;
       private RtfSection _sect;
       private RtfDocumentArea _docArea;
       private RtfParagraph _para;
  @@ -45,8 +46,8 @@
       
       private static final String ALPHA_WARNING = "WARNING: RTF renderer is 
veryveryalpha at this time, see class org.apache.fop.rtf.renderer.RTFHandler";
   
  -    public RTFHandler(OutputStream os) throws IOException {
  -        _rtfFile = new RtfFile(new OutputStreamWriter(os));
  +    public RTFHandler(OutputStream os) {
  +        _os = os;
           // use pdf fonts for now, this is only for resolving names
           org.apache.fop.render.pdf.FontSetup.setup(_fontInfo, null);
           System.err.println(ALPHA_WARNING);
  @@ -59,6 +60,7 @@
       public void startDocument() throws SAXException {
           // FIXME sections should be created 
           try {
  +            _rtfFile = new RtfFile(new OutputStreamWriter(_os));
               _docArea = _rtfFile.startDocumentArea();
           } catch(IOException ioe) {
               // FIXME could we throw Exception in all StructureHandler events?
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to