net.sf.saxon.trace

Class TimedTraceListener

public class TimedTraceListener extends Object implements TraceListener

A Simple trace listener that writes messages to System.err or to another designated PrintStream
Field Summary
PrintStreamout
Method Summary
voidclose()
Called at end
voidendCurrentItem(Item item)
Called after a node of the source tree got processed
voidenter(InstructionInfo instruction, XPathContext context)
Called when an instruction in the stylesheet gets processed
voidleave(InstructionInfo instruction)
Called after an instruction of the stylesheet got processed
voidopen()
Called at start
voidsetOutputStream(PrintStream stream)
Set the PrintStream to which the output will be written.
voidstartCurrentItem(Item item)
Called when an item becomes current

Field Detail

out

PrintStream out

Method Detail

close

public void close()
Called at end

endCurrentItem

public void endCurrentItem(Item item)
Called after a node of the source tree got processed

enter

public void enter(InstructionInfo instruction, XPathContext context)
Called when an instruction in the stylesheet gets processed

leave

public void leave(InstructionInfo instruction)
Called after an instruction of the stylesheet got processed

open

public void open()
Called at start

setOutputStream

public void setOutputStream(PrintStream stream)
Set the PrintStream to which the output will be written.

Parameters: stream the PrintStream to be used for output. By default, the output is written to System.err.

startCurrentItem

public void startCurrentItem(Item item)
Called when an item becomes current