throw new Error ("Not implemented");
if (!isOpen()) throw new ClosedChannelException();  byte[] buffer; int offset = 0; int len = src.remaining();  if (src.hasArray()) { buffer = src.array(); offset = src.arrayOffset() + src.position(); } else { buffer = new byte [len]; src.get (buffer); }  DatagramPacket packet = new DatagramPacket (buffer, offset, len, target);   for (int i = 0; i < packet.getLength(); i++) { System.out.println ("Byte " + i + " has value " + packet.getData() [packet.getOffset() + i]); }  socket.send (packet); return len;
  public int send (ByteBuffer src, SocketAddress target)    throws IOException  {    throw new Error ("Not implemented");  }