public int getTrafficClass() throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation");
public int getTrafficClass() throws SocketException { if (isClosed()) throw new SocketException("socket is closed");
	public int getTrafficClass() throws SocketException {		if (impl == null)			throw new SocketException("Cannot initialize Socket implementation");		Object obj = impl.getOption(SocketOptions.IP_TOS);		if (obj instanceof Integer)			return ((Integer)obj).intValue();		else			throw new SocketException("Unexpected type");	}