Hi and welcome to JavaRanch. For future reference, please avoid cross-posting the same question to multiple forums. This question has been answered in the
duplicate thread in I/O, so I'm going to close this one. Please direct further discussion there.