public class PPCReader extends AbstractReader
File content is split, and the iterator returns the raw message content of each SWIFT message found in the file. API is also provided to read each message parsed into an MT. The reader can be initialized with a File, Stream or String.
reader
Constructor and Description |
---|
PPCReader(java.io.File file)
Constructs a PPCReader to read messages from a file
|
PPCReader(java.io.InputStream stream)
Constructs a PPCReader to read messages from a stream
|
PPCReader(java.io.Reader r)
Constructs a PPCReader to read messages from a given Reader instance
|
PPCReader(java.lang.String string)
Constructs a PPCReader to read messages from a string
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns true if the iterator has more messages
|
java.lang.String |
next()
Returns the next message in the iterator in its raw format
|
iterator, nextMT, nextSwiftMessage, remove
public PPCReader(java.io.Reader r)
public PPCReader(java.lang.String string)
public PPCReader(java.io.InputStream stream)
public PPCReader(java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public boolean hasNext()
public java.lang.String next()
next
in interface java.util.Iterator<java.lang.String>
next
in class AbstractReader