public static void setSerialFilter (ObjectInputFilter filter)

Set the process-wide filter if it has not already been configured or set.

Parameters:
filter    the serialization filter to set as the process-wide filter; not null

Exceptions:
SecurityException    if there is security manager and the SerializablePermission("serialFilter") is not granted
IllegalStateException    if the filter has already been set non-null