\hypertarget{class_qore_1_1_buffered_stream_reader}{}\doxysection{Qore\+::Buffered\+Stream\+Reader Class Reference}
\label{class_qore_1_1_buffered_stream_reader}\index{Qore::BufferedStreamReader@{Qore::BufferedStreamReader}}


This class defines a buffered stream reader for input streams.  




{\ttfamily \#include $<$QC\+\_\+\+Buffered\+Stream\+Reader.\+dox.\+h$>$}



Inheritance diagram for Qore\+::Buffered\+Stream\+Reader\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=237pt]{class_qore_1_1_buffered_stream_reader__inherit__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_qore_1_1_buffered_stream_reader_a064ea2a4b081059c812e735379477257}{constructor}} (\mbox{\hyperlink{class_qore_1_1_input_stream}{Qore\+::\+Input\+Stream}} is, \+\_\+\+\_\+7\+\_\+ \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} encoding, \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} bufsize=\mbox{\hyperlink{group___buffered_stream_reader_ga5a70489b1e5c32585eb23e2a4423c8f9}{Default\+Stream\+Buffer\+Size}})
\begin{DoxyCompactList}\small\item\em Creates the \mbox{\hyperlink{class_qore_1_1_buffered_stream_reader}{Buffered\+Stream\+Reader}} for reading data from the given \mbox{\hyperlink{class_qore_1_1_input_stream}{Input\+Stream}}. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This class defines a buffered stream reader for input streams. 

\begin{DoxySince}{Since}
Qore 0.\+8.\+13
\end{DoxySince}
\begin{DoxyParagraph}{Example\+: Buffered\+Stream\+Reader basic usage}

\begin{DoxyCode}{0}
\DoxyCodeLine{FileInputStream is(\textcolor{stringliteral}{"{}data.txt"{}});}
\DoxyCodeLine{BufferedStreamReader sr(\textcolor{keywordflow}{is}, \textcolor{stringliteral}{"{}UTF-\/8"{}});}
\DoxyCodeLine{}
\DoxyCodeLine{*string line = sr.readLine();}
\DoxyCodeLine{*binary b = sr.readBinary(256);}
\DoxyCodeLine{int i = sr.readi4();}

\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_qore_1_1_input_stream}{Qore\+::\+Input\+Stream}} 
\end{DoxySeeAlso}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_qore_1_1_buffered_stream_reader_a064ea2a4b081059c812e735379477257}\label{class_qore_1_1_buffered_stream_reader_a064ea2a4b081059c812e735379477257}} 
\index{Qore::BufferedStreamReader@{Qore::BufferedStreamReader}!constructor@{constructor}}
\index{constructor@{constructor}!Qore::BufferedStreamReader@{Qore::BufferedStreamReader}}
\doxysubsubsection{\texorpdfstring{constructor()}{constructor()}}
{\footnotesize\ttfamily Qore\+::\+Buffered\+Stream\+Reader\+::constructor (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_qore_1_1_input_stream}{Qore\+::\+Input\+Stream}}}]{is,  }\item[{\+\_\+\+\_\+7\+\_\+ \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}}}]{encoding,  }\item[{\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}}}]{bufsize = {\ttfamily \mbox{\hyperlink{group___buffered_stream_reader_ga5a70489b1e5c32585eb23e2a4423c8f9}{Default\+Stream\+Buffer\+Size}}} }\end{DoxyParamCaption})}



Creates the \mbox{\hyperlink{class_qore_1_1_buffered_stream_reader}{Buffered\+Stream\+Reader}} for reading data from the given \mbox{\hyperlink{class_qore_1_1_input_stream}{Input\+Stream}}. 


\begin{DoxyParams}{Parameters}
{\em is} & the \mbox{\hyperlink{class_qore_1_1_input_stream}{Input\+Stream}} for reading data \\
\hline
{\em encoding} & the character encoding of the data from the \mbox{\hyperlink{class_qore_1_1_input_stream}{Input\+Stream}}; if not present, the \mbox{\hyperlink{character_encoding_default_encoding}{default character encoding}} is assumed \\
\hline
{\em bufsize} & the size of the internal buffer in bytes; must be a positive integer\\
\hline
\end{DoxyParams}

\begin{DoxyExceptions}{Exceptions}
{\em STREAM-\/\+BUFFER-\/\+ERROR} & an invalid stream buffer size was specified; the buffer size must be a positive integer \\
\hline
\end{DoxyExceptions}
