Package com.prowidesoftware.swift.io
Class PPCWriter
- java.lang.Object
-
- com.prowidesoftware.swift.io.AbstractWriter
-
- com.prowidesoftware.swift.io.PPCWriter
-
public class PPCWriter extends AbstractWriter
Helper API to write MT messages into DOS-PCC files.- Since:
- 7.8
- See Also:
AbstractWriter
-
-
Field Summary
-
Fields inherited from class com.prowidesoftware.swift.io.AbstractWriter
writer
-
-
Constructor Summary
Constructors Constructor Description PPCWriter(java.io.File file)
Deprecated.Use constructor signature withCharset
parameter insteadPPCWriter(java.io.File _file, java.nio.charset.Charset _charset)
Constructs aPPCWriter
to write content into a file using the specified charset.PPCWriter(java.io.OutputStream stream)
Deprecated.Use constructor signature withCharset
parameter insteadPPCWriter(java.io.OutputStream _stream, java.nio.charset.Charset _charset)
Constructs aPPCWriter
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 withCharset
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 formatstatic void
write(AbstractMT msg, java.io.Writer writer)
Writes the message into the writer in DOS-PPC formatvoid
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 com.prowidesoftware.swift.io.AbstractWriter
close, flush
-
-
-
-
Constructor Detail
-
PPCWriter
public PPCWriter(java.io.Writer writer)
Constructs a PPCWriter to write content into a given Writer instance.
-
PPCWriter
@Deprecated @ProwideDeprecated(phase3=SRU2023, comment="Use constructor signature with Charset parameter instead") public PPCWriter(java.io.File file) throws java.io.FileNotFoundException
Deprecated.Use constructor signature withCharset
parameter instead- Throws:
java.io.FileNotFoundException
-
PPCWriter
@Deprecated @ProwideDeprecated(phase3=SRU2023, comment="Use constructor signature with Charset parameter instead") public PPCWriter(java.lang.String filename) throws java.io.FileNotFoundException
Deprecated.Use constructor signature withCharset
parameter instead- Throws:
java.io.FileNotFoundException
-
PPCWriter
public PPCWriter(java.io.File _file, java.nio.charset.Charset _charset) throws java.io.FileNotFoundException
Constructs aPPCWriter
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(phase3=SRU2023, comment="Use constructor signature with Charset parameter instead") public PPCWriter(java.io.OutputStream stream)
Deprecated.Use constructor signature withCharset
parameter instead
-
PPCWriter
public PPCWriter(java.io.OutputStream _stream, java.nio.charset.Charset _charset)
Constructs aPPCWriter
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
-
-