本文整理匯總了Java中org.apache.xml.serializer.SerializerTrace類的典型用法代碼示例。如果您正苦於以下問題:Java SerializerTrace類的具體用法?Java SerializerTrace怎麽用?Java SerializerTrace使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
SerializerTrace類屬於org.apache.xml.serializer包,在下文中一共展示了SerializerTrace類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: generated
import org.apache.xml.serializer.SerializerTrace; //導入依賴的package包/類
@Override
public void generated(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;
}
}