Hi, ABCL
I already know how to declare a jconstructor or jmethod which has primitives as arguments:
For example, for java.net.DatagramSocket, I have following declarations which works fine:
(defvar $*int (jclass "int")) (defvar $*DatagramSocket (jclass "java.net.DatagramSocket")) (defvar $*InetAddress (jclass "java.net.InetAddress"))
(defvar $%DatagramSocket/2 (jconstructor $*DatagramSocket $*int $*InetAddress)) (defvar $@close/DatagramSocket/0 (jmethod $*DatagramSocket "close")) ...
But how can I declare java.net.DatagramPacket, whose constructor has a byte[] argument:
public DatagramPacket (byte[] buf, int offset, int length)
Just don't know how to represent "byte[]" ...
Regards,
Chun Tian (binghe)