added (file)input algorithms to java connector