Qore Programming Language Reference Manual  1.0.8
QC_InputStreamLineIterator.dox.h
1 namespace Qore {
4 
19 
20 public:
22 
33  constructor(Qore::InputStream is, *string encoding, *string eol, bool trim = True, int bufsize = DefaultStreamBufferSize);
34 
35 public:
37 
43  constructor(Qore::StreamReader sr, *string eol, bool trim = True);
44 
45 public:
47 
57 string getEncoding();
58 
59 public:
61 
78 string getLine();
79 
80 public:
82 
90 
91 public:
93 
110 string getValue();
111 
112 public:
114 
126 int index();
127 
128 public:
130 
143 bool next();
144 
145 public:
147 
158 bool valid();
159 };
160 }
bool valid()
Returns True if the iterator is currently pointing at a valid element, False if not.
bool next()
Moves the current position to the next line in the data; returns False if there are no more lines to ...
StreamReader getStreamReader()
Returns the StreamReader object used internally.
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...
const True
logical True
Definition: qc_qore.dox.h:98
constructor(Qore::InputStream is, *string encoding, *string eol, bool trim=True, int bufsize=DefaultStreamBufferSize)
Creates the InputStreamLineIterator for iterating over the given InputStream.
const DefaultStreamBufferSize
The default buffer size for the BufferedStreamReader class.
Definition: QC_BufferedStreamReader.dox.h:35
string getValue()
Returns the current line in the data or throws an ITERATOR-ERROR exception if the iterator is invalid...
string getLine()
Returns the current line in the data or throws an ITERATOR-ERROR exception if the iterator is invalid...
This class defines an abstract interface for line iterators.
Definition: QC_AbstractLineIterator.dox.h:8
string getEncoding()
Returns the character encoding for the InputStreamLineIterator.
This class defines a stream reader for input streams.
Definition: QC_StreamReader.dox.h:18
This class defines a line iterator for input streams.
Definition: QC_InputStreamLineIterator.dox.h:18
int index()
Returns the current iterator line number in the data (the first line is line 1) or 0 if not pointing ...
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
This class defines an abstract interface for input streams.
Definition: QC_InputStream.dox.h:19