I have an inpustream object coming into a method, and I do
stream.read(key);
where key is a byte array of 512 bytes. I would rather the key array be the number of characters (or length) of the stream of data being read so that I don't have to repeatedly call read until it reaches the end of the file. Thanks! btw, I left another post about whitespace but no one has answerred yet; any help would be appreciated on these 2 questions!