Java wrapper for file sizer; tbd not to copy memory