public void writeSet(int type, Set s) throws IOException {
public void writeSet(int type, byte[] s) throws IOException {
    public void writeSet(int type, Set s) throws IOException {//      if (log != null) log.debug("writeSet: type: " + type);        if (s == null) {            writeInt(1);            write(type); //e.g. gds.isc_tpb_version3        }        else {            writeInt(s.size() + 1);            write(type);            Iterator i = s.iterator();            while (i.hasNext()) {                int n = ((Integer)i.next()).intValue();                write(n);//              if (log != null) log.debug("writeSet: value: " + n);            }//          if (log != null) log.debug("writeSet: padding 0 : " + ((4 - (s.size() + 1)) & 3));            write(pad,0,((4 - (s.size() + 1)) & 3));        }    }