public Object load ( InputStream stream ) throws PickleException , IOException { stack = new UnpickleStack ( ) ; input = stream ; while ( true ) { short key = PickleUtils . readbyte ( input ) ; if ( key == - 1 ) throw new IOException ( "premature end of file" ) ; Object value = dispatch ( key ) ; if ( value != NO_RETURN_VALUE ) { return value ; } } }
Read a pickled object representation from the given input stream .