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, java.nio.charset.Charset _charset)Constructs aPPCWriterto write content into a file using the specified charset.PPCWriter(java.io.OutputStream _stream, java.nio.charset.Charset _charset)Constructs aPPCWriterto 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(AbstractMT msg)Writes the message into the internal writer in DOS-PPC formatstatic voidwrite(AbstractMT msg, java.io.Writer writer)Writes the message into the writer in DOS-PPC formatvoidwrite(java.lang.String msg)Writes the message content into the internal writer in DOS-PPC format.static voidwrite(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
public PPCWriter(java.io.File _file, java.nio.charset.Charset _charset) throws java.io.FileNotFoundExceptionConstructs aPPCWriterto write content into a file using the specified charset.- Parameters:
_file- file to write to_charset- charset- Throws:
java.io.FileNotFoundException
-
PPCWriter
public PPCWriter(java.io.OutputStream _stream, java.nio.charset.Charset _charset)Constructs aPPCWriterto 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.IOExceptionWrites 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.IOExceptionWrites 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
-
-