public class PPCWriter extends AbstractWriter
AbstractWriterwriter| Constructor and Description |
|---|
PPCWriter(File file)
Constructs a PPCWriter to write content into a file.
|
PPCWriter(OutputStream stream)
Constructs a PPCWriter to write content into a given stream.
|
PPCWriter(String filename)
Constructs a PPCWriter to write content into a file.
|
PPCWriter(Writer writer)
Constructs a PPCWriter to write content into a given Writer instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(AbstractMT msg)
Writes the message into the internal writer in DOS-PPC format
|
static void |
write(AbstractMT msg,
Writer writer)
Writes the message into the writer in DOS-PPC format
|
void |
write(String msg)
Writes the message content into the internal writer in DOS-PPC format.
|
static void |
write(String msg,
Writer writer)
Writes the message content into the writer in DOS-PPC format
|
close, flushpublic PPCWriter(Writer writer)
writer - public PPCWriter(File file) throws FileNotFoundException
file - FileNotFoundExceptionpublic PPCWriter(String filename) throws FileNotFoundException
filename - file to createFileNotFoundExceptionpublic PPCWriter(OutputStream stream)
stream - public void write(String msg) throws IOException
msg - SWIFT MT content to writeIOException - if an I/O error occurspublic void write(AbstractMT msg) throws IOException
msg - message to writeIOException - if an I/O error occurspublic static void write(AbstractMT msg, Writer writer) throws IOException
msg - message to writewriter - IOException - if an I/O error occurspublic static void write(String msg, Writer writer) throws IOException
msg - SWIFT MT content to writewriter - IOException - if an I/O error occurs