QC_InputStreamLineIterator.dox.h
namespace Qore {
class InputStreamLineIterator : public AbstractLineIterator {
public:
constructor(Qore::InputStream is, *string encoding, *string eol, bool trim = True, int bufsize = DefaultStreamBufferSize);
public:
constructor(Qore::StreamReader sr, *string eol, bool trim = True);
public:
string getEncoding();
public:
string getLine();
public:
StreamReader getStreamReader();
public:
string getValue();
public:
int index();
public:
bool next();
public:
bool valid();
};
};
Qore::InputStreamLineIterator::valid
bool valid()
Returns True if the iterator is currently pointing at a valid element, False if not.
Qore::InputStreamLineIterator::next
bool next()
Moves the current position to the next line in the data; returns False if there are no more lines to ...
Qore::InputStreamLineIterator::getStreamReader
StreamReader getStreamReader()
Returns the StreamReader object used internally.
Qore::trim
string trim(string str, *string chars)
Removes byte characters from the start and end of a string and returns the new string (also see the t...
Qore::True
const True
logical True
Definition: qc_qore.dox.h:94
Qore::InputStreamLineIterator::constructor
constructor(Qore::InputStream is, *string encoding, *string eol, bool trim=True, int bufsize=DefaultStreamBufferSize)
Creates the InputStreamLineIterator for iterating over the given InputStream.
Qore::DefaultStreamBufferSize
const DefaultStreamBufferSize
The default buffer size for the BufferedStreamReader class.
Definition: QC_BufferedStreamReader.dox.h:35
Qore::InputStreamLineIterator::getValue
string getValue()
Returns the current line in the data or throws an ITERATOR-ERROR exception if the iterator is invalid...
Qore::InputStreamLineIterator::getLine
string getLine()
Returns the current line in the data or throws an ITERATOR-ERROR exception if the iterator is invalid...
Qore::AbstractLineIterator
This class defines an abstract interface for line iterators.
Definition: QC_AbstractLineIterator.dox.h:8
Qore::InputStreamLineIterator::getEncoding
string getEncoding()
Returns the character encoding for the InputStreamLineIterator.
Qore::StreamReader
This class defines a stream reader for input streams.
Definition: QC_StreamReader.dox.h:18
Qore::InputStreamLineIterator
This class defines a line iterator for input streams.
Definition: QC_InputStreamLineIterator.dox.h:18
Qore::InputStreamLineIterator::index
int index()
Returns the current iterator line number in the data (the first line is line 1) or 0 if not pointing ...
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
Qore::InputStream
This class defines an abstract interface for input streams.
Definition: QC_InputStream.dox.h:12