well, after the first pass through the input file, the file position is at the end of the file. so, trying a second pass would cause an EOFException.
you have to remember to call inputStream.reset() before the second pass (and even before the first one, just to be safe). this will reset the file pointer back to the beginning of the file.
sorry if that doesn't help.
jason |