public void write(byte[] b, int off, int len) throws IOException, NullPointerException, IndexOutOfBoundsException { final DatagramPacket p = new DatagramPacket(b, off, len); p.setSocketAddress(address); socket.send(p);
public void write(final byte[] b, final int off, final int len) throws IOException, NullPointerException, IndexOutOfBoundsException { try { AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws IOException { final DatagramPacket p = new DatagramPacket(b, off, len); p.setSocketAddress(address); socket.send(p); return null; }}); } catch (PrivilegedActionException ex) { throw new IOException(ex.getException()); }
	public void write(byte[] b, int off, int len) throws IOException, NullPointerException, IndexOutOfBoundsException {		final DatagramPacket p = new DatagramPacket(b, off, len);		p.setSocketAddress(address);		socket.send(p);	}