\hypertarget{classUtil}{
\subsection{Util Class Reference}
\label{classUtil}\index{Util@{Util}}
}


Utility calss to hold a number of handy static functions.  


\subsubsection*{Static Package Functions}
\begin{DoxyCompactItemize}
\item 
static String \hyperlink{classUtil_a7c87cff294ea9f601b65b574b0a95ab6}{read} (Reader in)
\item 
static \hyperlink{classSPair}{SPair} \hyperlink{group__gPlugin_gaba7626a51248fda5b1c66b7abf7b105e}{getFileName} (String t)
\end{DoxyCompactItemize}


\subsubsection{Detailed Description}
Utility calss to hold a number of handy static functions. 

Definition at line 45 of file three\_\-B.java.



\subsubsection{Member Function Documentation}
\hypertarget{classUtil_a7c87cff294ea9f601b65b574b0a95ab6}{
\index{Util@{Util}!read@{read}}
\index{read@{read}!Util@{Util}}
\paragraph[{read}]{\setlength{\rightskip}{0pt plus 5cm}static String Util::read (
\begin{DoxyParamCaption}
\item[{Reader}]{in}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, static, package\mbox{]}}}}
\label{classUtil_a7c87cff294ea9f601b65b574b0a95ab6}


Read a file into a string. 

It simply sidcards errors because if the file is missing from the JAR archive, then extreme badness has happened and I have no idea how to recover. 
\begin{DoxyParams}{Parameters}
{\em in} & File to be read \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
file contents in a string 
\end{DoxyReturn}


Definition at line 53 of file three\_\-B.java.



Referenced by ThreeBHelp::run(), and three\_\-B::run().


\begin{DoxyCode}
    {
        try {
            final char[] buffer = new char[100]; 
            StringBuilder out = new StringBuilder(); 
            int read;
            do 
            {   
                read = in.read(buffer, 0, buffer.length);
                if (read>0)
                    out.append(buffer, 0, read);
            } while (read>=0);
            return out.toString();
        }
        catch(java.io.IOException err)
        {
            return "";
            //What do we do here?
        }
    }
\end{DoxyCode}


The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
\hyperlink{three__B_8java}{three\_\-B.java}\end{DoxyCompactItemize}
