T decode() throws IOExceptionDecodes the a value from the given input stream. It have to be able to decode the given stream consequently by calling this method repeatedly. Because there are many elements in the input stream, the stream should not be closed.
- the decoded element
IOException- if fail to decode