final Object object = objectStream.readObject ();
if (!this.nullAllowed && (object == null))
throw (new IOException ("unexpected null object"));
if (!this.clasz.isInstance (object))
throw (new IOException (String.format ("unexpected object class: `%s`", object.getClass ())));
if (objectStream.available () > 0)
throw (new IOException ("trailing garbage after object"));
return (this.clasz.cast (object));
}
@Override