use namespace and change 2 method to protected

- Use namespace
- Change two static class methods (readBinary, mimeTye) to protected
instance method