read typedbytes from hdfs using program interface

`dumbo cat` is good for command line usage.

But I need to read typedbytes from HDFS with API.

In this commit I extract functionality to method and lint `dumbo cat` to method call.