case HproseTags.TagObject:
return readObject(false, type);
case HproseTags.TagRef:
return readRef(type);
case HproseTags.TagError:
throw new HproseException((String)readString());
case -1:
throw new HproseException("No byte found in stream");
}
throw new HproseException("Unexpected serialize tag '" +
(char) tag + "' in stream");
}