Class PPCWriter

    • Constructor Summary

      Constructors 
      Constructor Description
      PPCWriter​(java.io.File file)
      Deprecated.
      Use constructor signature with Charset parameter instead
      PPCWriter​(java.io.File _file, java.nio.charset.Charset _charset)
      Constructs a PPCWriter to write content into a file using the specified charset.
      PPCWriter​(java.io.OutputStream stream)
      Deprecated.
      Use constructor signature with Charset parameter instead
      PPCWriter​(java.io.OutputStream _stream, java.nio.charset.Charset _charset)
      Constructs a PPCWriter to write content to the specified output stream using the specified charset.
      PPCWriter​(java.io.Writer writer)
      Constructs a PPCWriter to write content into a given Writer instance.
      PPCWriter​(java.lang.String filename)
      Deprecated.
      Use constructor signature with Charset parameter instead
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void write​(AbstractMT msg)
      Writes the message into the internal writer in DOS-PPC format
      static void write​(AbstractMT msg, java.io.Writer writer)
      Writes the message into the writer in DOS-PPC format
      void write​(java.lang.String msg)
      Writes the message content into the internal writer in DOS-PPC format.
      static void write​(java.lang.String msg, java.io.Writer writer)
      Writes the message content into the writer in DOS-PPC format
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PPCWriter

        public PPCWriter​(java.io.Writer writer)
        Constructs a PPCWriter to write content into a given Writer instance.
      • PPCWriter

        @Deprecated
        @ProwideDeprecated(phase4=SRU2024,
                           comment="Use constructor signature with Charset parameter instead")
        public PPCWriter​(java.io.File file)
                  throws java.io.FileNotFoundException
        Deprecated.
        Use constructor signature with Charset parameter instead
        Throws:
        java.io.FileNotFoundException
      • PPCWriter

        @Deprecated
        @ProwideDeprecated(phase4=SRU2024,
                           comment="Use constructor signature with Charset parameter instead")
        public PPCWriter​(java.lang.String filename)
                  throws java.io.FileNotFoundException
        Deprecated.
        Use constructor signature with Charset parameter instead
        Throws:
        java.io.FileNotFoundException
      • PPCWriter

        public PPCWriter​(java.io.File _file,
                         java.nio.charset.Charset _charset)
                  throws java.io.FileNotFoundException
        Constructs a PPCWriter to write content into a file using the specified charset.
        Parameters:
        _file - file to write to
        _charset - charset
        Throws:
        java.io.FileNotFoundException
      • PPCWriter

        @Deprecated
        @ProwideDeprecated(phase4=SRU2024,
                           comment="Use constructor signature with Charset parameter instead")
        public PPCWriter​(java.io.OutputStream stream)
        Deprecated.
        Use constructor signature with Charset parameter instead
      • PPCWriter

        public PPCWriter​(java.io.OutputStream _stream,
                         java.nio.charset.Charset _charset)
        Constructs a PPCWriter to write content to the specified output stream using the specified charset.
        Parameters:
        _stream - stream to write to
        _charset - charset
    • Method Detail

      • write

        public static void write​(AbstractMT msg,
                                 java.io.Writer writer)
                          throws java.io.IOException
        Writes the message into the writer in DOS-PPC format
        Parameters:
        msg - message to write
        Throws:
        java.io.IOException - if an I/O error occurs
      • write

        public static void write​(java.lang.String msg,
                                 java.io.Writer writer)
                          throws java.io.IOException
        Writes the message content into the writer in DOS-PPC format
        Parameters:
        msg - SWIFT MT content to write
        Throws:
        java.io.IOException - if an I/O error occurs
      • write

        public void write​(java.lang.String msg)
                   throws java.io.IOException
        Writes the message content into the internal writer in DOS-PPC format.
        Parameters:
        msg - SWIFT MT content to write
        Throws:
        java.io.IOException - if an I/O error occurs
      • write

        public void write​(AbstractMT msg)
                   throws java.io.IOException
        Writes the message into the internal writer in DOS-PPC format
        Parameters:
        msg - message to write
        Throws:
        java.io.IOException - if an I/O error occurs