<?xml version="1.0"?><phpdoc><class name="Bs_FileUtil" extends="Bs_Object" undoc="false" access="private" package="file"><file>C:/usr/local/lib/php/blueshoes-4.2/core/file/Bs_FileUtil.class.php</file><doc><author>andrej arn &amp;lt;andrej at blueshoes dot org&amp;gt;</author><inherited src="Array"/><description>throw this into bs_file.dependencies: Bs_System, Bs_Dir (in countLinesDir()),</description><shortdescription>file helper class. not sure if i should start another class or if i should</shortdescription><version>4.0.$id$</version><copyright>blueshoes.org</copyright></doc><function name="Bs_FileUtil" undoc="false" access="public"><doc><return type="void"/><description/><shortdescription>Constructor.</shortdescription></doc></function><function name="removeEmptyLines" undoc="false" access="public"><doc><parameter name="$fullPath" type="string"/><return name="" type="bool">TRUE on success</return><throws>bool FALSE.</throws><description/><shortdescription>removes all empty lines of the given file.</shortdescription></doc></function><function name="countLinesFile" undoc="false" access="public"><doc><parameter name="$fullPath" type="string"/><return name="" type="int"/><description/><shortdescription>counts the lines in the file specified.</shortdescription></doc></function><function name="countLinesDir" undoc="false" access="public"><doc><parameter name="$fullPath" type="string"/><parameter name="$regExp" default="NULL," type="string">(a regexp the file has to pass, eg to only use some file types. default is NULL.)</parameter><parameter name="$recursive" default="FALSE" type="string">(if you want to do it recursively, default is FALSE.)</parameter><return name="" type="int"/><description/><shortdescription>counts the lines in all files in a directory, even recursive if you want.</shortdescription></doc></function><function name="getMimeType" undoc="false" access="public"><doc><parameter name="$param" type="string">(file extension without the dot, eg &amp;apos;zip&amp;apos;)</parameter><return name="" type="string"/><throws>bool FALSE</throws><description>example:Bs_FileUtil-&amp;gt;getMimeType(&amp;apos;doc&amp;apos;) =&amp;gt; &amp;apos;application/msword&amp;apos;the function only knows the &amp;apos;official&amp;apos; ones, see the apache conf filenamed mime.types.default and it&amp;apos;s comment. extract:For more information about Internet media types, please read RFC 2045,2046, 2047, 2048, and 2077.  The Internet media type registry is atftp://ftp.iana.org/in-notes/iana/assignments/media-types/.</description><shortdescription>returns the mime type for a file type.</shortdescription></doc></function><constant name="BS_FILEUTIL_VERSION" undoc="true" access="private" case="default: case sensitive">4.0.$x$<doc></doc></constant><inherited src="Bs_Object" type="functions"><element>isex</element><element>isexception</element><element>tostring</element><element>tohtml</element><element>persist</element><element>unpersist</element><element>bs_object</element><element>bbsetoutput</element><element>bbawake</element><element>bbisawake</element><element>bbxmsg</element><element>bbxfunctionstart</element><element>bbxfunctionend</element><element>bbxecho</element><element>bbxvar</element><element>bbxvardump</element><element>bbforcetrace</element><element>bbbufferstart</element><element>bbbufferget</element><element>bbbufferendflush</element><element>bbbufferendclean</element></inherited><inherited src="Bs_Object" type="consts"><element>bs_object_version</element></inherited><path><parent>Bs_Object</parent></path><baseclass>Bs_Object</baseclass></class></phpdoc>