public Event (int event, String addr, Object arg) 
        {
            this.event = event;
            this.addr = addr;
            this.arg = arg;
            if (arg instanceof Integer)
                flag = VALUE_INTEGER;
            else if (arg instanceof SelectableChannel)
                flag = VALUE_CHANNEL;
            else
                flag = 0;
        }