/** * Writes the event to the given stream * * @param outStream the output stream to write the event to * @throws IOException */ protected void _writeData(DataOutputStream outStream) throws IOException { VMIdManager idm = VMIdManager.getDefault(); ThreadId tid = (ThreadId) idm.getObjectId(_thread); ObjectId oid = idm.getObjectId(_exception); tid.write(outStream); _location.write(outStream); oid.writeTagged(outStream); _catchLocation.write(outStream); }
/** * Returns a specific filtering parameter for this event. Valid types are thread, location, and * catchLocation. * * @param type the type of parameter desired * @returns the desired parameter or null */ public Object getParameter(int type) { if (type == EVENT_THREAD) return _thread; else if (type == EVENT_LOCATION) return _location; else if (type == EVENT_INSTANCE) return _instance; else if (type == EVENT_CLASS) return _klass; else if (type == EVENT_EXCEPTION_CLASS) return _exception.getClass(); else if (type == EVENT_EXCEPTION_CAUGHT) if (_catchLocation.getMethod() != null) return Boolean.TRUE; else return Boolean.FALSE; return null; }