Revert file reader to java.io buffer