Constructs an instance in registers it in the suspend system. state = ACTIVE; SuspendSystem.getInstance(classSecurityToken).registerSubsystem(this);
state = ACTIVE; SuspendSystem.getInstance(classSecurityToken).registerSubsystem(this);
Checks that networking subsystem is in either active or resuming state and throws IOException if it is not.throwsIOException if the networking subsystem state is neither ACTIVE nor RESUMING. if (state != ACTIVE && state != RESUMING) { throw new IOException("Networking is not active"); }
IOException
ACTIVE
RESUMING
if (state != ACTIVE && state != RESUMING) { throw new IOException("Networking is not active"); }
Returns te only instance.returnthe singleton instanceparamtoken security token that identifies caller access rights token.checkIfPermissionAllowed(Permissions.MIDP); return instance;
token.checkIfPermissionAllowed(Permissions.MIDP); return instance;