public static Set readSet(DataInput in) throws IOException, ClassNotFoundException {
    return readHashSet(in);
  }
Reads a {@code Set} from a {@code DataInput}.

@throws IOException A problem occurs while writing to {@code out}
@throws ClassNotFoundException The class of one of the {@code HashSet}'s elements cannot be
        found.
@see #writeSet
@since GemFire 4.0
geode-core/src/main/java/org/apache/geode/internal/InternalDataSerializer.java