public class PPCWriter extends AbstractWriter
AbstractWriter
writer
Constructor and Description |
---|
PPCWriter(java.io.File file)
Constructs a PPCWriter to write content into a file.
|
PPCWriter(java.io.OutputStream stream)
Constructs a PPCWriter to write content into a given stream.
|
PPCWriter(java.lang.String filename)
Constructs a PPCWriter to write content into a file.
|
PPCWriter(java.io.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,
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
|
close, flush
public PPCWriter(java.io.Writer writer)
public PPCWriter(java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public PPCWriter(java.lang.String filename) throws java.io.FileNotFoundException
filename
- file to createjava.io.FileNotFoundException
public PPCWriter(java.io.OutputStream stream)
public static void write(AbstractMT msg, java.io.Writer writer) throws java.io.IOException
msg
- message to writejava.io.IOException
- if an I/O error occurspublic static void write(java.lang.String msg, java.io.Writer writer) throws java.io.IOException
msg
- SWIFT MT content to writejava.io.IOException
- if an I/O error occurspublic void write(java.lang.String msg) throws java.io.IOException
msg
- SWIFT MT content to writejava.io.IOException
- if an I/O error occurspublic void write(AbstractMT msg) throws java.io.IOException
msg
- message to writejava.io.IOException
- if an I/O error occurs