Andrew Mcmurray wrote:when I call the mark supported method it returns false. I need to use ObjectInputStream because I am writing and reading in serialized objects.
Indeed, the Javadoc allows you to conclude that it will, so I'm not sure why Ninad thinks otherwise.
Anyway: do you want to peek in the sense of reading an object, then reading it again? Or just check if there are some bytes to read, or what, exactly? If I know what you want to do, I'm sure I can help you figure out a solution.