void (GenerateEvent ev) { if (!(myTransformer.getSerializationHandler() instanceof TracingSerializationHandler)) { // internal RTF evaluation, don't care return; } switch (ev.m_eventtype) { case SerializerTrace.EVENTTYPE_STARTDOCUMENT: myDebugger.getEventQueue().startDocument(); break; case SerializerTrace.EVENTTYPE_ENDDOCUMENT: myDebugger.getEventQueue().endDocument(); break; case SerializerTrace.EVENTTYPE_ENDELEMENT: myDebugger.getEventQueue().endElement(); break; case SerializerTrace.EVENTTYPE_CDATA: case SerializerTrace.EVENTTYPE_CHARACTERS: myDebugger.getEventQueue().characters(new String(ev.m_characters, ev.m_start, ev.m_length)); break; case SerializerTrace.EVENTTYPE_COMMENT: myDebugger.getEventQueue().comment(ev.m_data); break; case SerializerTrace.EVENTTYPE_PI: myDebugger.getEventQueue().pi(ev.m_name, ev.m_data); break; } }