commit IO part sample with Java