public class RJEReader extends AbstractReader
| Modifier and Type | Field and Description |
|---|---|
static char |
SPLITCHAR |
reader| Constructor and Description |
|---|
RJEReader(java.io.File file)
Constructs a RJEReader to read messages from a file
|
RJEReader(java.io.InputStream stream)
Constructs a RJEReader to read messages from a stream using the default encoding
|
RJEReader(java.io.Reader r)
Constructs a RJEReader to read messages from a given Reader instance
|
RJEReader(java.lang.String string)
Constructs a RJEReader 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
|
void |
setSplitChar_(char c)
Ovewrites the default standard split char
SPLITCHAR |
iterator, nextMT, nextSwiftMessage, removepublic static final char SPLITCHAR
public RJEReader(java.io.Reader r)
public RJEReader(java.lang.String string)
public RJEReader(java.io.InputStream stream)
If you need to read the stream with a different encoding you can use
Lib.readStream(InputStream, String)
with the constructor receiving the String content
public RJEReader(java.io.File file)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic boolean hasNext()
public java.lang.String next()
next in interface java.util.Iterator<java.lang.String>next in class AbstractReaderpublic void setSplitChar_(char c)
SPLITCHARc - a character to use as message separator