T decode() throws java.io.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
java.io.IOException- if fail to decode