I'll be usefull in solution if  inp.read( content_, length_ ) throws exception.