int bytes = 0; int len = dst.remaining ();
int offset = 0; int len = dst.remaining();
  public int read (ByteBuffer dst) throws IOException  {    byte[] data;    int bytes = 0;    int len = dst.remaining ();	    if (!dst.hasArray ())      {        data = new byte [len];        dst.get (data, 0, len);      }    else      {        data = dst.array ();      }        return socket.getInputStream().read (data, 0, len);  }